DOKK / manpages / debian 12 / libpapi-dev / PAPI_get_real_cyc.3.en
PAPI_get_real_cyc(3) PAPI PAPI_get_real_cyc(3)

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.

Examples:

s = PAPI_get_real_cyc();
your_slow_code();
e = PAPI_get_real_cyc();
printf("Wallclock cycles: %lld\n",e-s);

See Also:

PAPIF PAPI PAPI_get_virt_usec PAPI_get_virt_cyc PAPI_library_init

Generated automatically by Doxygen for PAPI from the source code.

Mon Nov 14 2022 Version 7.0.0.0