mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-29 07:59:11 +00:00
Always set checked_monotonic_time when calling CheckMonotonicTime()
This commit is contained in:
parent
020fb6889c
commit
d4143e02d1
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ static void CheckMonotonicTime(void)
|
||||||
struct timespec value;
|
struct timespec value;
|
||||||
if (clock_gettime(SDL_MONOTONIC_CLOCK, &value) == 0) {
|
if (clock_gettime(SDL_MONOTONIC_CLOCK, &value) == 0) {
|
||||||
has_monotonic_time = true;
|
has_monotonic_time = true;
|
||||||
} else
|
}
|
||||||
#elif defined(SDL_PLATFORM_APPLE)
|
#elif defined(SDL_PLATFORM_APPLE)
|
||||||
if (mach_timebase_info(&mach_base_info) == 0) {
|
if (mach_timebase_info(&mach_base_info) == 0) {
|
||||||
has_monotonic_time = true;
|
has_monotonic_time = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue