Start measuring at the start of indent :return: CodeTimer object
(self)
| 58 | self.threshold = threshold |
| 59 | |
| 60 | def __enter__(self): |
| 61 | """ |
| 62 | Start measuring at the start of indent |
| 63 | |
| 64 | :return: CodeTimer object |
| 65 | """ |
| 66 | |
| 67 | self.start = timeit.default_timer() |
| 68 | |
| 69 | return self |
| 70 | |
| 71 | def __exit__(self, exc_type, exc_value, traceback): |
| 72 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected