mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
14 lines
240 B
C
14 lines
240 B
C
#include <time.h>
|
|
#include <syscall.h>
|
|
#include <stdint.h>
|
|
|
|
// Seconds sleep
|
|
void sleep(size_t s) { _sleep(s*1000); }
|
|
|
|
// Millisecond sleep
|
|
void msleep(size_t ms) { _sleep(ms); }
|
|
|
|
// Microsecond sleep
|
|
void usleep(size_t us) { /* TODO */ }
|
|
|