QueryPerformanceFrequency function kernel32
Retrieves the frequency of the performance counter.
To learn more, see learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency.
Implementation
Win32Result<bool> QueryPerformanceFrequency(Pointer<Int64> lpFrequency) {
resolveGetLastError();
final result_ = _QueryPerformanceFrequency(lpFrequency);
return .new(value: result_ != FALSE, error: GetLastError());
}