MCPcopy Index your code
hub / github.com/pytorch/tutorials / asMinutes

Function asMinutes

intermediate_source/seq2seq_translation_tutorial.py:647–650  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

645import math
646
647def asMinutes(s):
648 m = math.floor(s / 60)
649 s -= m * 60
650 return '%dm %ds' % (m, s)
651
652def timeSince(since, percent):
653 now = time.time()

Callers 1

timeSinceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected