glfwGetTimerValue function
! @brief Returns the current value of the raw timer.
This function returns the current value of the raw timer, measured in 1 / frequency seconds. To get the frequency, call @ref glfwGetTimerFrequency.
@return The value of the timer, 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 glfwGetTimerFrequency
@since Added in version 3.2.
@ingroup input
GLFWAPI uint64_t glfwGetTimerValue(void)
Implementation
int glfwGetTimerValue() {
final glfwGetTimerValueLookupFunction = libglfw
.lookupFunction<Uint64 Function(), int Function()>('glfwGetTimerValue');
return glfwGetTimerValueLookupFunction();
}