Commit 99dfdd07 authored by Bernd Machenschalk's avatar Bernd Machenschalk
Browse files

Wrapper: collect CPU time on Windows: set final_cpu_time = current_cpu_time (got lost)

parent 2053cf8f
......@@ -971,6 +971,7 @@ bool TASK::poll(int& status) {
FILETIME exit_ftime, creation_ftime, user_ftime, kernel_ftime;
double user_time, kernel_time, process_cpu_time;
status = exit_code;
final_cpu_time = current_cpu_time;
if(GetProcessTimes(pid_handle, &exit_ftime, &creation_ftime, &kernel_ftime, &user_ftime)) {
user_time = 42.94967296 * user_ftime.dwHighDateTime + 1e-7 * user_ftime.dwLowDateTime;
kernel_time = 42.94967296 * kernel_ftime.dwHighDateTime + 1e-7 * kernel_ftime.dwLowDateTime;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment