From 95e2ddb24cfa25dc38439a49a060c185653b7929 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 2 Jan 2023 17:28:08 +0100 Subject: [PATCH] Fix clock_micros() --- src/lib/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils.c b/src/lib/utils.c index f708c9f..6b227d8 100644 --- a/src/lib/utils.c +++ b/src/lib/utils.c @@ -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; }