We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
QueryUnbiasedInterruptTime
1 parent 9c0cf86 commit cace1a7Copy full SHA for cace1a7
src/detection/uptime/uptime_windows.c
@@ -1,13 +1,11 @@
1
#include "uptime.h"
2
#include "common/time.h"
3
4
-#include <realtimeapiset.h>
+#include <sysinfoapi.h>
5
6
const char* ffDetectUptime(FFUptimeResult* result)
7
{
8
- // According to MSDN, this function only fails if it's called with NULL
9
- QueryUnbiasedInterruptTime(&result->uptime);
10
- result->uptime /= 10000; // Convert from 100-nanosecond intervals to milliseconds
+ result->uptime = GetTickCount64();
11
result->bootTime = ffTimeGetNow() - result->uptime;
12
return NULL;
13
}
0 commit comments