PAPI 7.1.0.0
Loading...
Searching...
No Matches
PAPI_get_virt_usec Class Reference

get virtual time counter values in microseconds More...

Detailed Description

Return values
PAPI_ECNFLCTIf there is no master event set. This will happen if the library has not been initialized, or for threaded applications, if there has been no thread id function defined by the PAPI_thread_init function.
PAPI_ENOMEMFor threaded applications, if there has not yet been any thread specific master event created for the current thread, and if the allocation of such an event set fails, the call will return PAPI_ENOMEM or PAPI_ESYS .

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:
printf("Process has run for cycles: %lld\en",e-s);
int your_slow_code()
Definition: PAPI_epc.c:56
double s
Definition: byte_profile.c:36
get virtual time counter value in clock cycles
See also
PAPI Fortran Low Level API
PAPI
PAPI
PAPI_get_real_cyc
PAPI_get_virt_cyc

The documentation for this class was generated from the following file: