(seconds: float)
| 15 | |
| 16 | |
| 17 | def convert_time(seconds: float) -> str: |
| 18 | seconds = int(round(seconds)) |
| 19 | seconds = seconds % (24 * 3600) |
| 20 | hour = seconds // 3600 |
| 21 | seconds %= 3600 |
| 22 | minutes = seconds // 60 |
| 23 | seconds %= 60 |
| 24 | |
| 25 | return "%d:%02d:%02d" % (hour, minutes, seconds) |
| 26 | |
| 27 | |
| 28 | def print_time(message: str, start_time: float, summary_time: bool = False) -> None: |
no test coverage detected
searching dependent graphs…