mirror of
https://github.com/glfw/glfw.git
synced 2025-01-30 20:02:34 +00:00
Fix documentation for glfwGetTimerValue
This commit is contained in:
parent
21fea01161
commit
662454b552
@ -940,9 +940,10 @@ with @ref glfwGetTimerValue.
|
|||||||
uint64_t value = glfwGetTimerValue();
|
uint64_t value = glfwGetTimerValue();
|
||||||
```
|
```
|
||||||
|
|
||||||
This value is in 1 / frequency seconds. The frequency of the raw
|
This function returns the current value of the raw timer. To get the current time in
|
||||||
timer varies depending on the operating system and hardware. You can query the
|
1 / frequency seconds, use `glfwGetTimerValue() / glfwGetTimerFrequency()`.
|
||||||
frequency, in Hz, with @ref glfwGetTimerFrequency.
|
The frequency of the rawtimer varies depending on the operating system and hardware.
|
||||||
|
You can query the frequency, in Hz, with @ref glfwGetTimerFrequency.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
uint64_t frequency = glfwGetTimerFrequency();
|
uint64_t frequency = glfwGetTimerFrequency();
|
||||||
|
@ -6037,9 +6037,12 @@ GLFWAPI void glfwSetTime(double time);
|
|||||||
|
|
||||||
/*! @brief Returns the current value of the raw timer.
|
/*! @brief Returns the current value of the raw timer.
|
||||||
*
|
*
|
||||||
* This function returns the current value of the raw timer, measured in
|
* This function returns the current value of the raw timer. To get the
|
||||||
* 1 / frequency seconds. To get the frequency, call @ref
|
* current time measured in 1 / frequency seconds, use
|
||||||
* glfwGetTimerFrequency.
|
* @ref glfwGetTimerValue / @ref glfwGetTimerFrequency.
|
||||||
|
* To get the frequency, call @ref glfwGetTimerFrequency.
|
||||||
|
*
|
||||||
|
*
|
||||||
*
|
*
|
||||||
* @return The value of the timer, or zero if an
|
* @return The value of the timer, or zero if an
|
||||||
* [error](@ref error_handling) occurred.
|
* [error](@ref error_handling) occurred.
|
||||||
|
Loading…
Reference in New Issue
Block a user