(self, key="default")
| 11 | self.clock[key] = time.time() |
| 12 | |
| 13 | def end(self, key="default"): |
| 14 | if key not in self.clock: |
| 15 | raise Exception("{} is not in the clock.".format(key)) |
| 16 | interval = time.time() - self.clock[key] |
| 17 | del self.clock[key] |
| 18 | return interval |
| 19 | |
| 20 | |
| 21 | def time_since(last_time): |
no outgoing calls
no test coverage detected