PAPI_get_real_usec(3)
okay so bestie, welcome to the PAPI manual page for PAPI_get_real_usec(3) π
β yes, the real time counter one.
β¨ NAME β¨
PAPI_get_real_usec β get real time counter value in microseconds π°οΈβ¨
πΈ SYNOPSIS πΈ
There isnβt a separate prototype line pasted here; the page rolls straight into the detailed description, and thatβs the vibe. π«Ά
π Detailed Description π
okay so this function returns the total real time that has passed since some arbitrary starting point. The time is returned in microseconds β±οΈ. This call is equivalent to wall clock time β literally the clock-on-the-wall vibe, no cap. π°οΈ
π Examples π
The original example is this exact snippet β copy it character for character, bestie, and do not βfixβ it on me π:
s = PAPI_get_real_cyc();
your_slow_code();
e = PAPI_get_real_cyc();
printf("Wallclock cycles: %lld\en",e-s);
Yes, the snippet says PAPI_get_real_cyc() even though this page is PAPI_get_real_usec; thatβs exactly what the original shows. π
π¦ See also π¦
Go peek at these too, bestie:
PAPIFPAPIPAPI_get_virt_usecPAPI_get_virt_cycPAPI_library_init
π Author π
Generated automatically by Doxygen for PAPI from the source code. β robot author behavior, honestly π€β¨
Sign-off time π: this iconic page is from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:48, and itβs the PAPI_get_real_usec(3) manual page. Byeee, bestie ππ¦
π¦ 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