Commit 8bf5fef8 authored by vrajivk's avatar vrajivk Committed by Ned Deily

bpo-36205: Fix the rusage implementation of time.process_time() (GH-15538)

parent fae0ed50
Fix the rusage implementation of time.process_time() to correctly report the sum of the system and user CPU time.
\ No newline at end of file
......@@ -1208,7 +1208,7 @@ _PyTime_GetProcessTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
return -1;
}
_PyTime_t total = utime + utime;
_PyTime_t total = utime + stime;
*tp = total;
return 0;
}
......
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