Stop the timer and record the time in a list.
(self)
| 111 | self.tik = time.time() |
| 112 | |
| 113 | def stop(self): |
| 114 | """Stop the timer and record the time in a list.""" |
| 115 | self.times.append(time.time() - self.tik) |
| 116 | return self.times[-1] |
| 117 | |
| 118 | def avg(self): |
| 119 | """Return the average time.""" |
no outgoing calls
no test coverage detected