samna.unifirm.timestamp#
Submodules#
Module content#
- class samna.unifirm.timestamp.StopWatch#
Bases:
pybind11_object
Control the timestamp (in microsecond) in events. If it is enabled, events with timestamp larger than the internal counter are sent immediately, timestamp less than the internal counter will wait until the internal counter equal or larger than it.
- reset(self: samna.unifirm.timestamp.StopWatch) None #
Resets the stopwatch to 0.
- set_base_period(self: samna.unifirm.timestamp.StopWatch, arg0: float) None #
- set_enable_value(self: samna.unifirm.timestamp.StopWatch, arg0: bool) None #
Start or stop the stopwatch to count, it alse reset the stopwatch when called.
WARNING: This method is DEPRECATED, use start and stop instead.
- start(self: samna.unifirm.timestamp.StopWatch, reset: bool = True) None #
Start the stopwatch. If reset is True, also resets the stopwatch when started.
- stop(self: samna.unifirm.timestamp.StopWatch) None #
Stop the stopwatch.