mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-14 15:55:30 +00:00
22 lines
388 B
C
22 lines
388 B
C
#include <windows.h>
|
|
#include <wchar.h>
|
|
|
|
int wmain(void) {
|
|
|
|
FILETIME ft = {0};
|
|
|
|
GetSystemTimeAsFileTime(&ft);
|
|
|
|
LARGE_INTEGER li = {0};
|
|
|
|
li.LowPart = ft.dwLowDateTime;
|
|
li.HighPart = ft.dwHighDateTime;
|
|
|
|
long long int hns = li.QuadPart;
|
|
|
|
wprintf(L"%lli hundreds of nanoseconds have elapsed "
|
|
"since Windows API epoch\n", hns);
|
|
|
|
return 0;
|
|
}
|