bpo-36205: Fix the rusage implementation of time.process_time() (GH-15538)
This commit is contained in:
parent
fae0ed5099
commit
8bf5fef873
|
@ -0,0 +1 @@
|
|||
Fix the rusage implementation of time.process_time() to correctly report the sum of the system and user CPU time.
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue