MCPcopy
hub / github.com/pytest-dev/pytest / time

Method time

src/_pytest/timing.py:85–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self._current_time += seconds
84
85 def time(self) -> float:
86 return self._current_time
87
88 def patch(self, monkeypatch: MonkeyPatch) -> None:
89 # pylint: disable-next=import-self

Callers 4

__enter__Method · 0.80
__exit__Method · 0.80
test_setmtimeMethod · 0.80
test_atimeMethod · 0.80

Calls

no outgoing calls

Tested by 4

__enter__Method · 0.64
__exit__Method · 0.64
test_setmtimeMethod · 0.64
test_atimeMethod · 0.64