sdlGetPerformanceFrequency function

int sdlGetPerformanceFrequency()

Get the count per second of the high resolution counter.

\returns a platform-specific count per second.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_GetPerformanceCounter

extern SDL_DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void)

Implementation

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