mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
POSIX: Use frequency member for clarity
This commit is contained in:
parent
111c02d74e
commit
aff00d0dd8
@ -60,7 +60,7 @@ uint64_t _glfwPlatformGetTimerValue(void)
|
|||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
clock_gettime(_glfw.timer.posix.clock, &ts);
|
clock_gettime(_glfw.timer.posix.clock, &ts);
|
||||||
return (uint64_t) ts.tv_sec * (uint64_t) 1000000000 + (uint64_t) ts.tv_nsec;
|
return (uint64_t) ts.tv_sec * _glfw.timer.posix.frequency + (uint64_t) ts.tv_nsec;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t _glfwPlatformGetTimerFrequency(void)
|
uint64_t _glfwPlatformGetTimerFrequency(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user