Fix clock_micros()

This commit is contained in:
2023-01-02 17:28:08 +01:00
parent 535e1add96
commit 95e2ddb24c

View File

@ -208,5 +208,5 @@ int base64_encode(void *data, unsigned long data_len, char *output, unsigned lon
long clock_micros(void) {
struct timespec time;
clock_gettime(CLOCK_MONOTONIC, &time);
return time.tv_sec * 10000000 + time.tv_nsec / 1000;
return time.tv_sec * 1000000 + time.tv_nsec / 1000;
}