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#

reset the timestamp 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 timestamp to count, it alse reset the timestamp after called.