diff options
-rw-r--r-- | os/time.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -21,6 +21,10 @@ class Time { systime++; } + inline static uint32_t time() { + return systime; + } + inline static void sleep(uint32_t ms) { ms += systime; while(systime < ms) { |