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