MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / __exit__

Method __exit__

utils/utils.py:362–366  ·  view source on GitHub ↗
(self, type, value, traceback)

Source from the content-addressed store, hash-verified

360 self.tstart = time.time()
361
362 def __exit__(self, type, value, traceback):
363 out_str = 'Elapsed: %s' % (time.time() - self.tstart)
364 if self.name:
365 logging.info('[{self.name}]')
366 logging.info(out_str)
367
368
369class Timer(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected