QueryPerformanceFrequency function Null safety kernel32

int QueryPerformanceFrequency (
  1. Pointer<Int64> lpFrequency

Retrieves the frequency of the performance counter. The frequency of the performance counter is fixed at system boot and is consistent across all processors. Therefore, the frequency need only be queried upon application initialization, and the result can be cached.

BOOL QueryPerformanceFrequency(
  LARGE_INTEGER *lpFrequency


int QueryPerformanceFrequency(Pointer<Int64> lpFrequency) {
  final _QueryPerformanceFrequency = _kernel32.lookupFunction<
      Int32 Function(Pointer<Int64> lpFrequency),
      int Function(Pointer<Int64> lpFrequency)>('QueryPerformanceFrequency');
  return _QueryPerformanceFrequency(lpFrequency);