mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
revert unnecessary changes
This commit is contained in:
parent
63f0cdb3bb
commit
865b3a059d
1 changed files with 10 additions and 2 deletions
|
@ -1076,7 +1076,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1086,7 +1090,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