source: bootcd/isolinux/syslinux-6.03/core/include/timer.h

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 354 bytes
Line 
1#ifndef TIMER_H
2#define TIMER_H
3
4/*
5 * Basic timer function...
6 */
7typedef uint32_t jiffies_t;
8extern volatile jiffies_t __jiffies, __ms_timer;
9static inline jiffies_t jiffies(void)
10{
11    return __jiffies;
12}
13
14typedef uint32_t mstime_t;
15typedef int32_t  mstimediff_t;
16static inline mstime_t ms_timer(void)
17{
18    return __ms_timer;
19}
20
21#endif /* TIMER_H */
Note: See TracBrowser for help on using the repository browser.