system_clock
System clock implementation for Pipecat.
- class pipecat.clocks.system_clock.SystemClock[source]
Bases:
BaseClockA monotonic clock implementation using system time.
Provides high-precision timing using the system’s monotonic clock, which is not affected by system clock adjustments and is suitable for measuring elapsed time in real-time applications.
- __init__()[source]
Initialize the system clock.
The clock starts in an uninitialized state and must be started explicitly using the start() method before time measurement begins.