| 7 | #include <windows.h> |
| 8 | |
| 9 | u64 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 | |
| 19 | u64 currentTimeSeconds() { |
| 20 | return currentTimeMillis() / 1000LLU; |
no outgoing calls
no test coverage detected