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