Mercurial > lcfOS
view cos/kernel/timer.c @ 279:2ccd57b1d78c
Fix register allocator to do burn2 OK
author | Windel Bouwman |
---|---|
date | Sat, 12 Oct 2013 09:56:23 +0200 |
parents | 8012221dd740 |
children |
line wrap: on
line source
#include "kernel.h" static uint64_t ticks = 0; void timerDriverUpdate() { ticks++; task_scheduler(); } uint64_t getTimeMS() { return 55*ticks; } void timer_init() { ticks = 0; }