-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix elapsed runtime format: the `strftime` function `%H` format specifier only supports 0–23 hours (for a single day), thus, when the time exceeds 24 hours, the hours component resets to 0. This patch set computes the elapsed time (per participant and for the entire run), builds a `datetime.timedelta` instance and formats the elapsed time following the `%Hh %Mmin %Ss` formatting using a function created for that purpose. Do not call `time.gmtime` as when reporting the elapsed time we are not interested in the UTC time format.
- Loading branch information
1 parent
a4e4c1f
commit 1cc485e
Showing
1 changed file
with
17 additions
and
12 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