MCPcopy Create free account
hub / github.com/defold/defold / GetTime

Function GetTime

engine/dlib/src/dlib/time_win32.cpp:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 uint64_t GetTime()
29 {
30#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
31 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
32#else
33 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
34#endif
35 FILETIME ft;
36 uint64_t t;
37 GetSystemTimeAsFileTime(&ft);
38
39 t = ft.dwHighDateTime;
40 t <<= 32;
41 t |= ft.dwLowDateTime;
42
43 t /= 10;
44 t -= DELTA_EPOCH_IN_MICROSECS;
45 return t;
46 }
47
48 static uint64_t frequency = 0;
49

Callers 11

OpenFunction · 0.70
BeginFunction · 0.70
GetInfoFunction · 0.70
GetFunction · 0.70
VerifyContextMethod · 0.70
GetNowFunction · 0.70
CreateInstanceFunction · 0.50
ReloadInstanceFunction · 0.50
TEST_FFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40