aboutsummaryrefslogtreecommitdiff
path: root/src/testing/util.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-30 13:39:30 -0500
committerGarrett D'Amore <garrett@damore.org>2024-11-30 13:39:30 -0500
commit743be540b8d7689868e638abb6b20587833b25e2 (patch)
tree64f2ce7e7e1afa05e5b69eefd94e26d4956fcfe5 /src/testing/util.c
parent02d6b0bb28f6c964477a2362860e37a27d13d8d9 (diff)
downloadnng-743be540b8d7689868e638abb6b20587833b25e2.tar.gz
nng-743be540b8d7689868e638abb6b20587833b25e2.tar.bz2
nng-743be540b8d7689868e638abb6b20587833b25e2.zip
tests: time collection overhead might be zero for coarse timers (Windows)
Diffstat (limited to 'src/testing/util.c')
-rw-r--r--src/testing/util.c2
1 files changed, 1 insertions, 1 deletions
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);