Uptime: detect boot time

This commit is contained in:
李通洲
2023-09-08 11:08:29 +08:00
committed by 李通洲
parent a093ca2001
commit cde2ba2c18
6 changed files with 70 additions and 27 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#include <windows.h>
#include <wtsapi32.h>
static uint64_t to_ms(uint64_t ret)
static inline uint64_t to_ms(uint64_t ret)
{
ret -= 116444736000000000ull;
return ret / 10000ull;