summaryrefslogtreecommitdiff
path: root/os/time.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-08-07 16:54:36 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-08-07 16:54:36 +0200
commit09e89c867c8dc14adee298176a0a4c72d8f32245 (patch)
tree8d125de0b4a1c9d608ddae6ff927fc3624663bd0 /os/time.h
parent2fc77d271db27ecb140191c2dfafdba835962ffb (diff)
Split out reusable parts into the laks project.
Diffstat (limited to 'os/time.h')
-rw-r--r--os/time.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/os/time.h b/os/time.h
deleted file mode 100644
index f4706e0..0000000
--- a/os/time.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef TIME_H
-#define TIME_H
-
-#include "thread.h"
-
-class Time {
- private:
- static volatile uint32_t systime;
-
- public:
- inline static void tick() {
- systime++;
- }
-
- inline static void sleep(uint32_t ms) {
- ms += systime;
- while(systime < ms) {
- Thread::yield();
- }
- }
-};
-
-#endif