HPL_timer(3)
π HPL_timer(3) β the HPL Library Functions glow-up π
okay bestie, we're in the HPL library function docs and this one is literally called HPL_timer. she's the timer facility. she counts seconds. she's the stopwatch of the group chat. π
β¨ NAME β¨
HPL_timer β the timer facility, aka the group chat's official stopwatch π°οΈβ¨
πΈ SYNOPSIS πΈ
#include "hpl.h"
void HPL_timer( const int I );
π¦ DESCRIPTION π¦
so HPL_timer gives you a "stopwatch" vibe β it's a cpu/wall timer that measures in seconds. no cap. π
up to 64 separate timers can be functioning at once, which is giving "she's booked and busy". π
how it works, bestie: the first call starts the timer, and the second call stops it. that's it. that's the whole thing. iconic.
and listen β this routine can be disenabled by calling HPL_timer_disable(), so that calls to the timer are just... ignored. π«₯ why would you do that? because this feature lets you make sure certain sections of code do not affect timings, even if they call routines which have HPL_timer calls in them. sneaky but valid. then HPL_timer_enable() will re-enable the timer functionality. the comeback era. π₯
you can retrieve the current value of a timer by calling
t0 = HPL_timer_inquire( HPL_WALL_TIME | HPL_CPU_TIME, I )
where I is the timer index in [0..64). β οΈ note that range, bestie β it's [0..64), not [0..64], okurrr.
and to initialize the timer functionality, one must have called HPL_timer_boot() prior to any of the functions mentioned above. no boot, no timers, fr fr. π
π ARGUMENTS π
Iβ (global input)const int. on entry,Ispecifies the timer to stop/start. that's the whole job. slay. π
π SEE ALSO π
HPL_timer_cputime (3)HPL_timer_walltime (3)
this page is from HPL 2.2, dated February 24, 2016 β a whole vintage, and she's still serving. πβ¨ thanks for reading bestie, go start a timer or something, mwah π«Ά
π¦ where this page comes from
- fedora 43: hpl-doc 2.2-22.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hpl-doc 2.2-23.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms