[−][src]Function rs_glfw3::bindings::glfwGetTime
pub unsafe extern "C" fn glfwGetTime() -> f64
@brief Returns the value of the GLFW timer.
This function returns the value of the GLFW timer. Unless the timer has been set using @ref glfwSetTime, the timer measures time elapsed since GLFW was initialized.
The resolution of the timer is system dependent, but is usually on the order of a few micro- or nanoseconds. It uses the highest-resolution monotonic time source on each supported platform.
@return The current value, in seconds, 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. Reading and writing of the internal timer offset is not atomic, so it needs to be externally synchronized with calls to @ref glfwSetTime.
@sa @ref time
@since Added in version 1.0.
@ingroup input