diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/pktmr.c | 7 | ||||
| -rw-r--r-- | test/pktmr.cpp | 7 |
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; |
