(self, monkeypatch: MonkeyPatch)
| 86 | return self._current_time |
| 87 | |
| 88 | def patch(self, monkeypatch: MonkeyPatch) -> None: |
| 89 | # pylint: disable-next=import-self |
| 90 | from _pytest import timing # noqa: PLW0406 |
| 91 | |
| 92 | monkeypatch.setattr(timing, "sleep", self.sleep) |
| 93 | monkeypatch.setattr(timing, "time", self.time) |
| 94 | monkeypatch.setattr(timing, "perf_counter", self.time) |
| 95 | |
| 96 | |
| 97 | __all__ = ["perf_counter", "sleep", "time"] |