MCPcopy Create free account
hub / github.com/CompVis/diff2flow / timer

Function timer

diff2flow/helpers.py:118–121  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

116
117
118def timer(start, end):
119 hours, rem = divmod(end - start, 3600)
120 minutes, seconds = divmod(rem, 60)
121 return "{:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), seconds)
122
123
124class Timer:

Callers 1

__exit__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected