You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
388 B
21 lines
388 B
#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;
|
|
}
|
|
|