fix -Wpedantic

This commit is contained in:
Chu'vok
2024-09-18 12:47:17 +02:00
parent 9c26ab9668
commit b8932a3972
2 changed files with 3 additions and 3 deletions

2
tim.h
View File

@@ -703,7 +703,7 @@ static void read_event(int timeout_ms) {
}
static inline int64_t time_us(void) {
struct timespec ts = {};
struct timespec ts = {0};
clock_gettime(CLOCK_MONOTONIC, &ts);
return ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
}