MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __enter__

Method __enter__

monai/utils/profiling.py:132–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

130 self.start_time: float | None = None
131
132 def __enter__(self):
133 self.start_time = perf_counter()
134 return self
135
136 def __exit__(self, exc_type, exc_value, exc_traceback):
137 if self.start_time is not None:

Callers 1

startMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected