blob: e62aba64d238312872c3865e82ad8b3dffd050f5 [file] [log] [blame]
Ewout van Bekkum3c61ae92020-10-30 15:52:25 -07001.. _module-pw_chrono:
2
3---------
4pw_chrono
5---------
6Pigweed's chrono module provides facilities for applications to deal with time,
7leveraging many pieces of STL's the ``std::chrono`` library but with a focus
8on portability for constrained embedded devices and maintaining correctness.
9
10.. warning::
11 This module is under construction, not ready for use, and the documentation
12 is incomplete.
13
14SystemClock facade
15------------------
16The ``pw::chrono::SystemClock`` is meant to serve as the clock used for time
17bound operations such as thread sleeping, waiting on mutexes/semaphores, etc.
18The ``SystemClock`` always uses a signed 64 bit as the underlying type for time
19points and durations. This means users do not have to worry about clock overflow
20risk as long as rational durations and time points as used, i.e. within a range
21of ±292 years.