diff --git a/wasp/boards/simulator/watch.py b/wasp/boards/simulator/watch.py index 860c414..14bf59e 100644 --- a/wasp/boards/simulator/watch.py +++ b/wasp/boards/simulator/watch.py @@ -5,6 +5,9 @@ import time def sleep_ms(ms): time.sleep(ms / 1000) time.sleep_ms = sleep_ms +time.ticks_ms = lambda : int(time.time() * 1000) +time.ticks_us = lambda : int(time.time() * 1000 * 1000) +time.ticks_diff = lambda x, y : x-y import sys, traceback def print_exception(exc, file=sys.stdout):