diff options
Diffstat (limited to 'os/time.h')
-rw-r--r-- | os/time.h | 23 |
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 |