MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / format_time

Function format_time

code/main_TextBP_benchmark.py:36–42  ·  view source on GitHub ↗

Takes a time in seconds and returns a string hh:mm:ss

(elapsed)

Source from the content-addressed store, hash-verified

34
35
36def format_time(elapsed):
37 '''
38 Takes a time in seconds and returns a string hh:mm:ss
39 '''
40 elapsed_rounded = int(round((elapsed)))
41
42 return str(datetime.timedelta(seconds=elapsed_rounded))
43
44
45def get_logger(output_dir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected