fixed bugs, added progress bar, and more
[dosdemo] / src / timer.h
1 #ifndef TIMER_H_
2 #define TIMER_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* expects the required timer resolution in hertz
9  * if res_hz is 0, the current resolution is retained
10  */
11 void init_timer(int res_hz);
12
13 void reset_timer(void);
14 unsigned long get_msec(void);
15
16 void sleep_msec(unsigned long msec);
17
18 #ifdef __cplusplus
19 }
20 #endif
21
22 #endif  /* TIMER_H_ */