MCPcopy Create free account
hub / github.com/StackStorm/st2 / __enter__

Method __enter__

st2common/st2common/metrics/base.py:127–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return get_datetime_utc_now() - self._start_time
126
127 def __enter__(self):
128 self._start_time = get_datetime_utc_now()
129 return self
130
131 def __exit__(self, *args):
132 self.send_time()

Callers

nothing calls this directly

Calls 1

get_datetime_utc_nowFunction · 0.90

Tested by

no test coverage detected