summaryrefslogtreecommitdiff
path: root/pk.h.in
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 /pk.h.in
parent64b319d5cc80c1bee2bb18693fa25b03e872b6de (diff)
pktmr: BREAKING more denominations
Diffstat (limited to 'pk.h.in')
-rw-r--r--pk.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/pk.h.in b/pk.h.in
index ddc897e..db5a720 100644
--- a/pk.h.in
+++ b/pk.h.in
@@ -175,6 +175,15 @@
*
* Offers a set of `pk_tmr*` macros for elapsed time checking.
*
+* The following definitions (shown with defaults) can be overridden:
+* PK_TMR_CLOCK CLOCK_MONOTONIC
+*
+* If your needs require you to use more than one clock, I recommend calling
+* `clock_gettime` manually instead of calling `pk_tmr_start`/`pk_tmr_stop`.
+* `pk_tmr.b` is the start time.
+* `pk_tmr.e` end the end time.
+* You could then call the `pk_tmr_duration...` convenience macros as needed.
+*
*******************************************************************************/
#define PK_VERSION "@@PK_VERSION@@"