X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdevices%2Ftimer.h;fp=src%2Fdevices%2Ftimer.h;h=33fdaec3ce90e45ff6d83a90831201ddfa170dcf;hb=fd24baa6eaa3c98cece07189ed34a0943e03d520;hp=4be2f48dc8cb006be6a691dd1bb4a92996d2b005;hpb=5a3263611cb5b67450f3dc1306359de9f76e0d47;p=pintos-anon diff --git a/src/devices/timer.h b/src/devices/timer.h index 4be2f48..33fdaec 100644 --- a/src/devices/timer.h +++ b/src/devices/timer.h @@ -6,9 +6,11 @@ #define TIMER_FREQ 100 void timer_init (void); -uint64_t timer_ticks (void); -uint64_t timer_elapsed (uint64_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 */