MCPcopy
hub / github.com/faust-streaming/faust / ms_since

Method ms_since

faust/sensors/monitor.py:327–329  ·  view source on GitHub ↗

Given timestamp start, return number of ms since that time.

(self, start_time: float)

Source from the content-addressed store, hash-verified

325 return self.time() - start_time
326
327 def ms_since(self, start_time: float) -> float:
328 """Given timestamp start, return number of ms since that time."""
329 return self.secs_to_ms(self.secs_since(start_time))
330
331 def secs_to_ms(self, timestamp: float) -> float:
332 """Convert seconds to milliseconds."""

Calls 2

secs_to_msMethod · 0.95
secs_sinceMethod · 0.95