MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / checkpoint

Method checkpoint

pogom/utils.py:410–412  ·  view source on GitHub ↗
(self, step)

Source from the content-addressed store, hash-verified

408 self.times.append((step, t, round((t - self.times[-1][1]) * 1000)))
409
410 def checkpoint(self, step):
411 t = time.time()
412 self.times.append(('total @ ' + step, t, t - self.times[0][1]))
413
414 def output(self):
415 self.checkpoint('end')

Callers 1

outputMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected