#time #compatible #point #negative #values

no-std uchrono

A no_std compatible time point and duration library

2 releases

0.1.1 Oct 23, 2023
0.1.0 Oct 22, 2023

#5 in #negative

Download history 1/week @ 2024-02-17 21/week @ 2024-02-24 1/week @ 2024-03-02 27/week @ 2024-03-30 2/week @ 2024-04-06 72/week @ 2024-04-13

74 downloads per month

MIT/Apache

18KB
264 lines

A no_std compatible time point and duration library.

Duration

The Duration type is inspired by smoltcp::time::Duration and embassy_time::Duration but allows for negative duration values as well.

Time points

The TimePoint type is keyed on which Clock it originates from. This catches errors such as accidentally comparing time points from different clocks.

Features

  • std - enabled by default.

lib.rs:

A no_std compatible time point and duration library.

Duration

The Duration type is inspired by smoltcp::time::Duration and embassy_time::Duration but allows for negative duration values as well.

Time points

The TimePoint type is keyed on which Clock it originates from. This catches errors such as accidentally comparing time points from different clocks.

Features

  • std - enabled by default.

Dependencies