Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8bf5fef8
Commit
8bf5fef8
authored
Aug 26, 2019
by
vrajivk
Committed by
Ned Deily
Aug 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-36205: Fix the rusage implementation of time.process_time() (GH-15538)
parent
fae0ed50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Misc/NEWS.d/next/Library/2019-08-27-03-53-26.bpo-36205.AfkGRl.rst
...S.d/next/Library/2019-08-27-03-53-26.bpo-36205.AfkGRl.rst
+1
-0
Modules/timemodule.c
Modules/timemodule.c
+1
-1
No files found.
Misc/NEWS.d/next/Library/2019-08-27-03-53-26.bpo-36205.AfkGRl.rst
0 → 100644
View file @
8bf5fef8
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
Modules/timemodule.c
View file @
8bf5fef8
...
...
@@ -1208,7 +1208,7 @@ _PyTime_GetProcessTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
return
-
1
;
}
_PyTime_t
total
=
utime
+
u
time
;
_PyTime_t
total
=
utime
+
s
time
;
*
tp
=
total
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment