feat: stub QueryPerformance{Counter, Frequency}

This commit is contained in:
Tropical 2026-03-02 21:49:26 -06:00
parent 42035b71d8
commit 7c578c2161

View file

@ -520,4 +520,21 @@ static inline BOOL FindClose(HANDLE hFindFile)
return TRUE;
}
BOOL QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency)
{
// nanoseconds
lpFrequency->QuadPart = (1000000000);
return false;
}
static inline BOOL QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount)
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
lpPerformanceCount->QuadPart = (ts.tv_sec * 1000000000LL) + ts.tv_nsec;
return true;
}
#endif // LINUXSTUBS_H