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) {
resolveGetLastError();
final result_ = _QueryPerformanceCounter(lpPerformanceCount);
return .new(value: result_ != FALSE, error: GetLastError());
}