MCPcopy Create free account
hub / github.com/imrahulr/hat / format_time

Function format_time

core/utils/utils.py:77–84  ·  view source on GitHub ↗

Format time for displaying. Arguments: elapsed: time interval in seconds.

(elapsed)

Source from the content-addressed store, hash-verified

75
76
77def format_time(elapsed):
78 """
79 Format time for displaying.
80 Arguments:
81 elapsed: time interval in seconds.
82 """
83 elapsed_rounded = int(round((elapsed)))
84 return str(datetime.timedelta(seconds=elapsed_rounded))
85
86
87def seed(seed=1):

Callers 2

train-wa.pyFile · 0.90
train.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…