[*] amend 2a33d61e
This commit is contained in:
parent
2a33d61e63
commit
772d08fee6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user