summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-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) {