From 743be540b8d7689868e638abb6b20587833b25e2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 30 Nov 2024 13:39:30 -0500 Subject: tests: time collection overhead might be zero for coarse timers (Windows) --- src/testing/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testing') diff --git a/src/testing/util.c b/src/testing/util.c index 045aacdf..33e5da89 100644 --- a/src/testing/util.c +++ b/src/testing/util.c @@ -562,7 +562,7 @@ nuts_tran_perf(const char *scheme) NUTS_ASSERT(end >= now); } } - NUTS_ASSERT(end - now > 0); + NUTS_ASSERT(end - now >= 0); NUTS_ASSERT(end - now < 10000); // remove the cost of timing delta -= (end - now); -- cgit v1.2.3-70-g09d2