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. πŸ’œπŸ¦‹