Crate countrs

Source

Modules§

chrono
This module implements the Time and TimeUnits traits for chrono’s DateTime<Tz>, as long as From<DateTime<Utc>> is implemented for DateTime<Tz>.
types
This module provides TimeStamp and Duration types which implement the Time and TimeUnits traits respectively, for use with Counter and its methods.

Structs§

Counter
A counter stores start and end times, and implements Display to either show the time passed since start, or until end, formatted as HH(+):MM:SS.
The timer will not go down past 00:00:00.
InvalidDirection
TimeOverflow
TimeParserError

Enums§

Direction
Specifies whether to count Up from a starting time, or Down from a target end time.

Traits§

Time
TimeUnits