mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-10 18:11:04 +09:00
revert unnecessary changes
This commit is contained in:
parent
530202344f
commit
6a0a5c7238
1 changed files with 10 additions and 2 deletions
|
@ -1067,7 +1067,11 @@ void GCToOSInterface::GetMemoryStatus(uint64_t restricted_limit, uint32_t* memor
|
||||||
int64_t GCToOSInterface::QueryPerformanceCounter()
|
int64_t GCToOSInterface::QueryPerformanceCounter()
|
||||||
{
|
{
|
||||||
LARGE_INTEGER ts;
|
LARGE_INTEGER ts;
|
||||||
::QueryPerformanceCounter(&ts);
|
if (!::QueryPerformanceCounter(&ts))
|
||||||
|
{
|
||||||
|
assert(false && "Failed to query performance counter");
|
||||||
|
}
|
||||||
|
|
||||||
return ts.QuadPart;
|
return ts.QuadPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1077,7 +1081,11 @@ int64_t GCToOSInterface::QueryPerformanceCounter()
|
||||||
int64_t GCToOSInterface::QueryPerformanceFrequency()
|
int64_t GCToOSInterface::QueryPerformanceFrequency()
|
||||||
{
|
{
|
||||||
LARGE_INTEGER ts;
|
LARGE_INTEGER ts;
|
||||||
::QueryPerformanceFrequency(&ts);
|
if (!::QueryPerformanceFrequency(&ts))
|
||||||
|
{
|
||||||
|
assert(false && "Failed to query performance counter");
|
||||||
|
}
|
||||||
|
|
||||||
return ts.QuadPart;
|
return ts.QuadPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue