diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-11 18:15:44 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-11 18:15:44 +0200 |
commit | 79842b0d5c5f117659dbaddb6d4dc70cbe46d844 (patch) | |
tree | ead62273926003492edd3391535ade0b60ac2519 | |
parent | 929ba5dddbbbf2aaee90047531533cdd2f48ff9d (diff) |
Added Time::time().
-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) { |