MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / time_since

Function time_since

text2motion/utils/utils.py:43–48  ·  view source on GitHub ↗
(since, percent)

Source from the content-addressed store, hash-verified

41 return '%dm %ds' % (m, s)
42
43 def time_since(since, percent):
44 now = time.time()
45 s = now - since
46 es = s / percent
47 rs = es - s
48 return '%s (- %s)' % (as_minutes(s), as_minutes(rs))
49
50 if epoch is not None:
51 print('epoch: %3d niter: %6d inner_iter: %4d' % (epoch, niter_state, inner_iter), end=" ")

Callers

nothing calls this directly

Calls 1

as_minutesFunction · 0.85

Tested by

no test coverage detected