Revert "Uptime (Windows): use QueryUnbiasedInterruptTime"

Fixes #1935

This reverts commit b812f3ccde.
This commit is contained in:
李通洲
2025-08-28 18:22:06 +08:00
parent 9c0cf863ba
commit cace1a7156
+2 -4
View File
@@ -1,13 +1,11 @@
#include "uptime.h"
#include "common/time.h"
#include <realtimeapiset.h>
#include <sysinfoapi.h>
const char* ffDetectUptime(FFUptimeResult* result)
{
// According to MSDN, this function only fails if it's called with NULL
QueryUnbiasedInterruptTime(&result->uptime);
result->uptime /= 10000; // Convert from 100-nanosecond intervals to milliseconds
result->uptime = GetTickCount64();
result->bootTime = ffTimeGetNow() - result->uptime;
return NULL;
}