summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-09-11 18:15:44 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-09-11 18:15:44 +0200
commit79842b0d5c5f117659dbaddb6d4dc70cbe46d844 (patch)
treeead62273926003492edd3391535ade0b60ac2519
parent929ba5dddbbbf2aaee90047531533cdd2f48ff9d (diff)
Added Time::time().
-rw-r--r--os/time.h4
1 files changed, 4 insertions, 0 deletions
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) {