glfwGetTimerFrequency function

int glfwGetTimerFrequency()

! @brief Returns the frequency, in Hz, of the raw timer.

This function returns the frequency, in Hz, of the raw timer.

@return The frequency of the timer, in Hz, or zero if an error(@ref error_handling) occurred.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function may be called from any thread.

@sa @ref time @sa @ref glfwGetTimerValue

@since Added in version 3.2.

@ingroup input

GLFWAPI uint64_t glfwGetTimerFrequency(void)

Implementation

int glfwGetTimerFrequency() {
  final glfwGetTimerFrequencyLookupFunction =
      libglfw.lookupFunction<Uint64 Function(), int Function()>(
          'glfwGetTimerFrequency');
  return glfwGetTimerFrequencyLookupFunction();
}