Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/dm_control
/ measure_time
Method
measure_time
dm_control/viewer/util.py:276–279 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
274
275
@contextlib.contextmanager
276
def
measure_time(self):
277
start_time = time.time()
278
yield
279
self._measured_time = time.time() - start_time
280
281
@property
282
def
measured_time(self):
Callers
2
tick
Method · 0.80
test_time_measurement
Method · 0.80
Calls
1
time
Method · 0.45
Tested by
1
test_time_measurement
Method · 0.64