This commit is contained in:
Reece Wilson 2023-04-22 23:04:46 +01:00
parent 2a33d61e63
commit 772d08fee6

View File

@ -268,6 +268,12 @@ namespace Aurora::Time
return 1000000000ull / 100u;
#endif
static AuUInt64 frequency = 0;
if (frequency != 0)
{
return frequency;
}
#if defined(AURORA_IS_POSIX_DERIVED)
::timespec spec {};
if (::clock_getres(CLOCK_THREAD_CPUTIME_ID, &spec) == 0)
@ -355,6 +361,12 @@ namespace Aurora::Time
return 1000000000ull / 100u;
#endif
static AuUInt64 frequency = 0;
if (frequency != 0)
{
return frequency;
}
#if defined(AURORA_IS_POSIX_DERIVED)
::timespec spec {};
if (::clock_getres(CLOCK_PROCESS_CPUTIME_ID, &spec) == 0)