From 6a52d123672b7a00af6e22b4c138205be2042a94 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sat, 6 Feb 2010 20:51:56 +0100 Subject: Reorganisation --- src/kernel/task/timer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/kernel/task/timer.h (limited to 'src/kernel/task/timer.h') diff --git a/src/kernel/task/timer.h b/src/kernel/task/timer.h new file mode 100644 index 0000000..4909245 --- /dev/null +++ b/src/kernel/task/timer.h @@ -0,0 +1,10 @@ +#ifndef DEF_TIMER_H +#define DEF_TIMER_H + +#include + +void timer_init(uint32_t frequency); +uint32_t timer_time(); //Returns miliseconds (approximate) since computer started +uint32_t timer_uptime(); //Same thing in seconds + +#endif -- cgit v1.2.3