6 #ifdef _MSC_VER //Windows Visual Studio 13 uint64_t CPUTimeInCentiNanoseconds(){
15 HANDLE h = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, GetCurrentProcessId());
18 FILETIME ftCreation, ftExit, ftKernel, ftUser;
20 if(GetProcessTimes(h, &ftCreation, &ftExit, &ftKernel, &ftUser)){
22 t.HighPart = ftUser.dwHighDateTime;
23 t.LowPart = ftUser.dwLowDateTime;
38 return 100LL*CPUTimeInCentiNanoseconds();
49 return clock()*(1000000000LL/CLOCKS_PER_SEC);
uint64_t CPUTimeInNanoseconds()
CPU time in nanoseconds.