mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 19:42:00 +00:00
I am POSIXed.
This commit is contained in:
parent
3a8b4b3a84
commit
df1af5ca75
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
static uint64_t getRawTime(void)
|
static uint64_t getRawTime(void)
|
||||||
{
|
{
|
||||||
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK)
|
#if defined(CLOCK_MONOTONIC)
|
||||||
if (_glfwLibrary.X11.timer.monotonic)
|
if (_glfwLibrary.X11.timer.monotonic)
|
||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
@ -64,7 +64,7 @@ static uint64_t getRawTime(void)
|
|||||||
|
|
||||||
void _glfwInitTimer(void)
|
void _glfwInitTimer(void)
|
||||||
{
|
{
|
||||||
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK)
|
#if defined(CLOCK_MONOTONIC)
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
|
|
||||||
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
|
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user