修复
This commit is contained in:
@ -20,6 +20,9 @@ unsigned long long get_system_uptime_ms() {
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return (unsigned long long)(ts.tv_sec) * 1000 + ts.tv_nsec / 1000000;
|
||||
void Sleep() {
|
||||
usleep(1000); // Sleep for 1 millisecond
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user