HPL_timer_cputime(3)
β¨ HPL_timer_cputime(3) β¨
okay bestie, welcome to the HPL Library Functions page for HPL_timer_cputime(3). this is the one that hands you the CPU time, and we're gonna get into it π
π NAME π
HPL_timer_cputime β Return the CPU time.
π¦ SYNOPSIS π¦
#include "hpl.h"
double HPL_timer_cputime();
π DESCRIPTION π
so like, HPL_timer_cputime returns the cpu time. that's the whole vibe. but the way it gets that cpu time depends on which macro is defined, and honestly the tea is kinda iconic:
- If
HPL_USE_CLOCKis defined, theclock()function is used to return an approximation of processor time used by the program. The value returned is the CPU time used so far as aclock_t; to get the number of seconds used, the result is divided byCLOCKS_PER_SEC. This function is part of the ANSI/ISO C standard library. - If
HPL_USE_TIMESis defined, thetimes()function is used instead. This function returns the current process times.times()returns the number of clock ticks that have elapsed since the system has been up. - Otherwise and by default, the standard library function
getrusage()is used.
no cap, that's the whole rundown π«Ά
πΈ SEE ALSO πΈ
HPL_timer_walltime (3)HPL_timer (3)
mwah π this page was HPL 2.2, dated February 24, 2016, and the footer lowkey says HPL_timer_cputime(3). slay β¨
π¦ 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