Update code styly and reformat code

This commit is contained in:
Marek Kraus
2023-01-07 11:50:51 +01:00
parent 9fbaa05b64
commit da34daf69f
10 changed files with 1008 additions and 1023 deletions
+6 -6
View File
@@ -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
}