From 19a6b84915cee214ccec929dfad5f9515fdc2911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 24 Jan 2024 17:02:26 +0100 Subject: [PATCH] osdep/timer: update documentation and test for mp_time_ns No longer true after 8bbcc87feea7abf256a6c7f511244d09f5520c17. --- osdep/timer.h | 2 +- test/timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osdep/timer.h b/osdep/timer.h index 3a925caec3..3eab817626 100644 --- a/osdep/timer.h +++ b/osdep/timer.h @@ -23,7 +23,7 @@ // Initialize timer, must be called at least once at start. void mp_time_init(void); -// Return time in nanoseconds. Never wraps. Never returns 0 or negative values. +// Return time in nanoseconds. Never wraps. Never returns negative values. int64_t mp_time_ns(void); // Return time in seconds. Can have down to 1 nanosecond resolution, but will diff --git a/test/timer.c b/test/timer.c index f85009c1e7..962760f592 100644 --- a/test/timer.c +++ b/test/timer.c @@ -13,7 +13,7 @@ int main(void) /* timekeeping */ { int64_t now = mp_time_ns(); - assert_true(now > 0); + assert_true(now >= 0); mp_sleep_ns(MP_TIME_MS_TO_NS(10));