1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-09 09:34:49 +09:00

revert unnecessary changes

This commit is contained in:
vsadov 2022-09-16 10:51:12 -07:00
parent 530202344f
commit 6a0a5c7238

View file

@ -1067,7 +1067,11 @@ void GCToOSInterface::GetMemoryStatus(uint64_t restricted_limit, uint32_t* memor
int64_t GCToOSInterface::QueryPerformanceCounter()
{
LARGE_INTEGER ts;
::QueryPerformanceCounter(&ts);
if (!::QueryPerformanceCounter(&ts))
{
assert(false && "Failed to query performance counter");
}
return ts.QuadPart;
}
@ -1077,7 +1081,11 @@ int64_t GCToOSInterface::QueryPerformanceCounter()
int64_t GCToOSInterface::QueryPerformanceFrequency()
{
LARGE_INTEGER ts;
::QueryPerformanceFrequency(&ts);
if (!::QueryPerformanceFrequency(&ts))
{
assert(false && "Failed to query performance counter");
}
return ts.QuadPart;
}