projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add timer_msleep, timer_usleep, timer_nsleep().
[pintos-anon]
/
src
/
devices
/
timer.h
diff --git
a/src/devices/timer.h
b/src/devices/timer.h
index 4be2f48dc8cb006be6a691dd1bb4a92996d2b005..33fdaec3ce90e45ff6d83a90831201ddfa170dcf 100644
(file)
--- a/
src/devices/timer.h
+++ b/
src/devices/timer.h
@@
-6,9
+6,11
@@
#define TIMER_FREQ 100
void timer_init (void);
#define TIMER_FREQ 100
void timer_init (void);
-
u
int64_t timer_ticks (void);
-
uint64_t timer_elapsed (u
int64_t);
+int64_t timer_ticks (void);
+
int64_t timer_elapsed (
int64_t);
-void timer_wait_until (uint64_t);
+void timer_msleep (int64_t ms);
+void timer_usleep (int64_t us);
+void timer_nsleep (int64_t ns);
#endif /* timer.h */
#endif /* timer.h */