QueryPerformanceCounter function Null safety kernel32

int QueryPerformanceCounter(
  1. Pointer<Int64> lpPerformanceCount
)

Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp that can be used for time-interval measurements.

BOOL QueryPerformanceCounter(
  LARGE_INTEGER *lpPerformanceCount
);

Implementation

int QueryPerformanceCounter(Pointer<Int64> lpPerformanceCount) {
  final _QueryPerformanceCounter = _kernel32.lookupFunction<
      Int32 Function(Pointer<Int64> lpPerformanceCount),
      int Function(
          Pointer<Int64> lpPerformanceCount)>('QueryPerformanceCounter');
  return _QueryPerformanceCounter(lpPerformanceCount);
}