farm-ng-core
|
Classes | |
class | StampSemantics |
Functions | |
Timestamp | get_monotonic_now (str semantics) |
Timestamp | get_system_clock_now (str semantics) |
Timestamp | timestamp_from_monotonic (str semantics, float stamp) |
float|None | get_stamp_by_semantics_and_clock_type (Event event, str semantics, str clock_type) |
Variables | |
time_source = time | |
Timestamp core.stamp.get_monotonic_now | ( | str | semantics | ) |
float | None core.stamp.get_stamp_by_semantics_and_clock_type | ( | Event | event, |
str | semantics, | ||
str | clock_type | ||
) |
Utility function to get the stamp of a Timestamp by semantics. Args: event: farm-ng protobuf event semantics: semantics of the timestamp to get (see StampSemantics) clock_type: clock type of the timestamp to get (e.g., monotonic, system_clock)
Timestamp core.stamp.get_system_clock_now | ( | str | semantics | ) |
Timestamp core.stamp.timestamp_from_monotonic | ( | str | semantics, |
float | stamp | ||
) |
core.stamp.time_source = time |