Function QueryPerformanceFrequency [src]

Prototype

pub fn QueryPerformanceFrequency() u64

Source

pub fn QueryPerformanceFrequency() u64 { // "On systems that run Windows XP or later, the function will always succeed" // https://docs.microsoft.com/en-us/windows/desktop/api/profileapi/nf-profileapi-queryperformancefrequency var result: LARGE_INTEGER = undefined; assert(ntdll.RtlQueryPerformanceFrequency(&result) != 0); // The kernel treats this integer as unsigned. return @as(u64, @bitCast(result)); }