-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pg.time
now supports aggregating sub-timers with the same name.
With this change, the following code is valid, and the reported elapsed time for the 'task' status will be aggregated accordingly. ``` with pg.timeit() as t: with pg.timeit('task'): do_something() with pg.timeit('task'): do_something_else() print(t.status()['task']) ``` PiperOrigin-RevId: 715536323
- Loading branch information
Showing
2 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters