(self)
| 205 | return self._current_time |
| 206 | |
| 207 | def patch(self): |
| 208 | from _pytest import timing |
| 209 | |
| 210 | monkeypatch.setattr(timing, "sleep", self.sleep) |
| 211 | monkeypatch.setattr(timing, "time", self.time) |
| 212 | monkeypatch.setattr(timing, "perf_counter", self.time) |
| 213 | |
| 214 | result = MockTiming() |
| 215 | result.patch() |