mirror of https://github.com/BOINC/boinc.git
parent
f9f3aad4a8
commit
1d48a187c1
|
@ -369,7 +369,6 @@ double boinc_cpu_time() {
|
||||||
return cpu_secs;
|
return cpu_secs;
|
||||||
#else
|
#else
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
//#ifdef WINNT_CLOCK
|
|
||||||
HANDLE hProcess;
|
HANDLE hProcess;
|
||||||
FILETIME creationTime,exitTime,kernelTime,userTime;
|
FILETIME creationTime,exitTime,kernelTime,userTime;
|
||||||
|
|
||||||
|
@ -396,8 +395,7 @@ double boinc_cpu_time() {
|
||||||
return cpu_secs;
|
return cpu_secs;
|
||||||
}
|
}
|
||||||
CloseHandle(hProcess);
|
CloseHandle(hProcess);
|
||||||
// ... fall through
|
|
||||||
//#endif // WINNT_CLOCK
|
|
||||||
// TODO: Handle timer wraparound
|
// TODO: Handle timer wraparound
|
||||||
static bool first=true;
|
static bool first=true;
|
||||||
static DWORD first_count = 0;
|
static DWORD first_count = 0;
|
||||||
|
|
Loading…
Reference in New Issue