Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.19 KB

timing.rst

File metadata and controls

32 lines (24 loc) · 1.19 KB

Clocks, Time and Scheduling modules

This library contains a range of tools for dealing with timing, clocks, and timelines and scheduling code to run at set times.

Contents:

monotonic_time.rst clock.rst Task.rst

The dvbcss.monotonic_time module provides a ~dvbcss.monotonic_time.time and ~dvbcss.monotonic_time.sleep functions equivalent to those in the standard python library time module. However these are guaranteeed to be monotonic and use the highest precision time sourcecs available (depending on the host operating system).

The dvbcss.clock module provides high level abstractions for representing clocks and timelines and the relationships between them. The client and server implementations <protocol> for the DVB-CSS protocols use these objects to represent clocks and timelines.

TheTask module provides sleep and task scheduling functions that work with ~dvbcss.clock objects and allow code to be called when a clock reaches a particular tick value, even if that clock is adjusted in some way after the task is scheduled.