mirror of
https://github.com/pine64/blisp.git
synced 2026-09-18 04:01:30 +00:00
Update code styly and reformat code
This commit is contained in:
@@ -8,14 +8,14 @@
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
static void sleep_ms(int milliseconds){
|
||||
static void sleep_ms(int milliseconds) {
|
||||
#ifdef WIN32
|
||||
Sleep(milliseconds);
|
||||
Sleep(milliseconds);
|
||||
#else
|
||||
struct timespec ts;
|
||||
ts.tv_sec = milliseconds / 1000;
|
||||
ts.tv_nsec = (milliseconds % 1000) * 1000000;
|
||||
nanosleep(&ts, NULL);
|
||||
struct timespec ts;
|
||||
ts.tv_sec = milliseconds / 1000;
|
||||
ts.tv_nsec = (milliseconds % 1000) * 1000000;
|
||||
nanosleep(&ts, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user