MCPcopy Create free account
hub / github.com/CompVis/diff2flow / Timer

Class Timer

diff2flow/helpers.py:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123
124class Timer:
125 def __enter__(self):
126 self.start = time.time()
127 return self
128
129 def __exit__(self, exc_type, exc_val, exc_tb):
130 self.end = time.time()
131 self.delta = self.end - self.start
132 self.time = timer(self.start, self.end)
133
134
135def seed_everything(seed):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected