PAPI_get_real_cyc(3)
π PAPI_get_real_cyc(3) β get real time counter value in clock cycles β¨
okay so bestie, welcome to the PAPI manual page for PAPI_get_real_cyc β it's giving wall-clock time, but make it clock cycles, and honestly it ate. no cap, this one is literally about the total real time that has passed since some arbitrary starting point. π«Ά
β¨ NAME β¨
PAPI_get_real_cyc β get real time counter value in clock cycles. Returns the total real time passed since some arbitrary starting point. The time is returned in clock cycles. This call is equivalent to wall clock time. π
π SYNOPSIS π
Detailed Description
Examples:
s = PAPI_get_real_cyc();
your_slow_code();
e = PAPI_get_real_cyc();
printf("Wallclock cycles: %lld\en",e-s);
π See also π
go peek at these besties too, iykyk: PAPIF, PAPI, PAPI_get_virt_usec, PAPI_get_virt_cyc, PAPI_library_init. π
π Author π
Generated automatically by Doxygen for PAPI from the source code. not me hand-writing it, bestie β the robots did that part. π€β¨
Version 7.2.0.0 β Wed Jun 25 2025 19:30:48 π
that's the whole vibe check, bestie: PAPI_get_real_cyc is the real-time counter in clock cycles, equivalent to wall clock time, and it's iconic for wrapping your slow code with s and e so you can print the cycle difference. periodt. ππ¦
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms