diff --git a/include/util/time.h b/include/util/time.h index 287698dec..890fe55fb 100644 --- a/include/util/time.h +++ b/include/util/time.h @@ -6,7 +6,7 @@ /** * Get the current time, in milliseconds. */ -uint32_t get_current_time_msec(void); +int64_t get_current_time_msec(void); /** * Convert a timespec to milliseconds. diff --git a/util/time.c b/util/time.c index 06e42b40d..c561d23ab 100644 --- a/util/time.c +++ b/util/time.c @@ -15,7 +15,7 @@ void timespec_from_nsec(struct timespec *r, int64_t nsec) { r->tv_nsec = nsec % NSEC_PER_SEC; } -uint32_t get_current_time_msec(void) { +int64_t get_current_time_msec(void) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); return timespec_to_msec(&now);