MCPcopy Create free account
hub / github.com/cinit/WSAPatch / currentTimeMillis

Function currentTimeMillis

TimeUtils.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <windows.h>
8
9u64 currentTimeMillis() {
10 FILETIME ft = {};
11 GetSystemTimeAsFileTime(&ft);
12 u64 ret = ft.dwHighDateTime;
13 ret <<= 32;
14 ret |= ft.dwLowDateTime;
15 ret /= 10000LLU;
16 return ret - 116444736000000000LLU;
17}
18
19u64 currentTimeSeconds() {
20 return currentTimeMillis() / 1000LLU;

Callers 2

defaultLogHandlerFunction · 0.85
currentTimeSecondsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected