From 79842b0d5c5f117659dbaddb6d4dc70cbe46d844 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Tue, 11 Sep 2012 18:15:44 +0200 Subject: Added Time::time(). --- os/time.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os') diff --git a/os/time.h b/os/time.h index 3533967..f4e3ce6 100644 --- a/os/time.h +++ b/os/time.h @@ -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) { -- cgit v1.2.3