PAPI_get_virt_nsec(3)
π PAPI_get_virt_nsec(3) β get virtual time counter values in nanoseconds, straight from the PAPI manual, bestie β¨
π NAME π
PAPI_get_virt_nsec β Get virtual time counter values in nanoseconds.
β¨ SYNOPSIS β¨
The synopsis here is giving short-and-sweet energy β it rolls right into the detailed description, so letβs go. π«Ά
π¦ Detailed Description π¦
Okay so 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. π
π©· Return values π©·
Hereβs the tea on the return values, no cap:
PAPI_ECNFLCTβ If 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 thePAPI_thread_initfunction.PAPI_ENOMEMβ For 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 returnPAPI_ENOMEMorPAPI_ESYS.
vibe check: those return values are literally the whole βwhat went wrongβ section, so keep them close. π
π Author π
This page was generated automatically by Doxygen for PAPI from the source code β yes, the robots did this one, bestie. π€β¨
mwah π β this page is serving PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:48. Byeee! ππ¦π
π¦ 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