SaleaeTimeDelta

A high-precision duration.

Durations can be created with any combination of time units, and the resulting value is the sum of all specified components.

dt = SaleaeTimeDelta(second=1, millisecond=500)  # 1.5 seconds
seconds = float(dt)  # convert to float seconds

Methods

__init__(second: float = 0, *, millisecond: float = 0, microsecond: float = 0, nanosecond: float = 0, picosecond: float = 0) -> None

Construct a SaleaeTimeDelta from numerical values.

All values must be convertible to float. Multiple units may be specified; the resulting duration is the sum of all values.

second
Seconds.
millisecond
Milliseconds.
microsecond
Microseconds.
nanosecond
Nanoseconds.
picosecond
Picoseconds.
AI/LLM users: see llms-extensions.txt for machine-readable documentation.