sdlGetPerformanceFrequency function

int sdlGetPerformanceFrequency()

Get the count per second of the high resolution counter.

\returns a platform-specific count per second.

\since This function is available since SDL 2.0.0.

\sa SDL_GetPerformanceCounter

extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void)

Implementation

int sdlGetPerformanceFrequency() {
  final sdlGetPerformanceFrequencyLookupFunction =
      libSdl2.lookupFunction<Uint64 Function(), int Function()>(
          'SDL_GetPerformanceFrequency');
  return sdlGetPerformanceFrequencyLookupFunction();
}