Add comment.
[pintos-anon] / src / devices / timer.h
1 #ifndef DEVICES_TIMER_H
2 #define DEVICES_TIMER_H
3
4 #include <stdint.h>
5
6 /* Number of timer interrupts per second. */
7 #define TIMER_FREQ 100
8
9 void timer_init (void);
10 int64_t timer_ticks (void);
11 int64_t timer_elapsed (int64_t);
12
13 void timer_msleep (int64_t ms);
14 void timer_usleep (int64_t us);
15 void timer_nsleep (int64_t ns);
16
17 #endif /* devices/timer.h */