summaryrefslogblamecommitdiff
path: root/src/kernel/task/timer.h
blob: cf6a2d218d10dc76576bcde7ffc67d49b40b7e9f (plain) (tree)
1
2
3
4
5
6
7
8
9


                   
                  




                                                                                          

                                  
      
#ifndef DEF_TIMER_H
#define DEF_TIMER_H

#include <types.h>

void timer_init(uint32_t frequency);
uint32_t timer_time();		//Returns miliseconds (approximate) since computer started
uint32_t timer_uptime();	//Same thing in seconds

void thread_sleep(uint32_t msecs);

#endif