summaryrefslogtreecommitdiff
path: root/test/pktmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pktmr.c')
-rw-r--r--test/pktmr.c7
1 files changed, 5 insertions, 2 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;