summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-03-13 18:17:56 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-03-14 15:57:00 -0400
commit7d93b9e5a2a92f366719a9c471c6bf926915e5c0 (patch)
treec918b18504e538da7c151116b7e9e8501dcd5b59 /test
parent64b319d5cc80c1bee2bb18693fa25b03e872b6de (diff)
pktmr: BREAKING more denominations
Diffstat (limited to 'test')
-rw-r--r--test/pktmr.c7
-rw-r--r--test/pktmr.cpp7
2 files changed, 10 insertions, 4 deletions
diff --git a/test/pktmr.c b/test/pktmr.c
index 8708891..7a62a00 100644
--- a/test/pktmr.c
+++ b/test/pktmr.c
@@ -18,8 +18,11 @@ int main(int argc, char *argv[])
{
pk_tmr_start(tmr);
pk_tmr_stop(tmr);
- PK_LOGV_INF("%s: elapsed time (nano): %li\n", __FILE__, pk_tmr_duration_nano(tmr));
- PK_LOGV_INF("%s: elapsed time (double): %.9f\n", __FILE__, pk_tmr_duration_double(tmr));
+ PK_LOGV_INF("%s: elapsed time (u64) ns: %llu\n", __FILE__, pk_tmr_duration_u64_nano(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) ns: %.9f\n", __FILE__, pk_tmr_duration_dbl_nano(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) μs: %.9f\n", __FILE__, pk_tmr_duration_dbl_micro(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) ms: %.9f\n", __FILE__, pk_tmr_duration_dbl_mili(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) s: %.9f\n", __FILE__, pk_tmr_duration_dbl_scnd(tmr));
}
return 0;
diff --git a/test/pktmr.cpp b/test/pktmr.cpp
index 899b421..0ad1910 100644
--- a/test/pktmr.cpp
+++ b/test/pktmr.cpp
@@ -18,8 +18,11 @@ int main(int argc, char *argv[])
{
pk_tmr_start(tmr);
pk_tmr_stop(tmr);
- PK_LOGV_INF("%s: elapsed time (nano): %li\n", __FILE__, pk_tmr_duration_nano(tmr));
- PK_LOGV_INF("%s: elapsed time (double): %.9f\n", __FILE__, pk_tmr_duration_double(tmr));
+ PK_LOGV_INF("%s: elapsed time (u64) ns: %llu\n", __FILE__, pk_tmr_duration_u64_nano(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) ns: %.9f\n", __FILE__, pk_tmr_duration_dbl_nano(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) μs: %.9f\n", __FILE__, pk_tmr_duration_dbl_micro(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) ms: %.9f\n", __FILE__, pk_tmr_duration_dbl_mili(tmr));
+ PK_LOGV_INF("%s: elapsed time (dbl) s: %.9f\n", __FILE__, pk_tmr_duration_dbl_scnd(tmr));
}
return 0;