PAPI_get_virt_usec(3) | PAPI | PAPI_get_virt_usec(3) |
PAPI_get_virt_usec -
get virtual time counter values in microseconds
Return values:
This function returns the total number of virtual units from some arbitrary starting point. Virtual units accrue every time the process is running in user-mode on behalf of the process. Like the real time counters, this count is guaranteed to exist on every platform PAPI supports. However on some platforms, the resolution can be as bad as 1/Hz as defined by the operating system.
Examples:
s = PAPI_get_virt_cyc(); your_slow_code(); e = PAPI_get_virt_cyc(); printf("Process has run for cycles: %lld\n",e-s);
See Also:
PAPI
PAPI
PAPI_get_real_cyc
PAPI_get_virt_cyc
Generated automatically by Doxygen for PAPI from the source code.
Mon Nov 14 2022 | Version 7.0.0.0 |