QueryPerformanceCounter function kernel32
Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp that can be used for time-interval measurements.
To learn more, see learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter.
Implementation
Win32Result<bool> QueryPerformanceCounter(Pointer<Int64> lpPerformanceCount) {
final result_ = QueryPerformanceCounter_Wrapper(lpPerformanceCount);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}