Crate eternity_rs

Source
Expand description

Human and bot readable durations

Provides human and bot readable formatting of std::time::Duration. There are several extension traits to choose from. Many limit the time period over which they report for conciseness. But you can also use the Eternity trait for general purpose.

§Time Periods

Traits§

Eternity
Represents time periods ranging from milliseconds to days
MediumEternity
Represents time periods ranging from seconds to hours
NanoEternity
Represents time periods ranging from nanoseconds to milliseconds
ShortEternity
Represents time periods ranging from milliseconds to minutes