2 releases

Uses old Rust 2015

0.1.1 Jul 28, 2018
0.1.0 Jul 28, 2018

#484 in Date and time

Download history 10/week @ 2023-12-07 364/week @ 2023-12-14 510/week @ 2023-12-21 900/week @ 2023-12-28 628/week @ 2024-01-04 856/week @ 2024-01-11 931/week @ 2024-01-18 834/week @ 2024-01-25 853/week @ 2024-02-01 550/week @ 2024-02-08 744/week @ 2024-02-15 1318/week @ 2024-02-22 1206/week @ 2024-02-29 756/week @ 2024-03-07 893/week @ 2024-03-14 1228/week @ 2024-03-21

4,256 downloads per month

MIT/Apache

7KB

Durations

This crate defines several Duration constants commonly (or rarely) used in practice.

Usage example

extern crate durations;
 
use durations::{SECOND as S, MILLISECOND as MS};
 
std::thread::sleep(2*S + 200*MS);
// or alternatively
std::thread::sleep(2.2*S);

License

All crates licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

This crate defines several Duration constants commonly (or rarely) used in practice.

Usage example

extern crate durations;

use durations::{SECOND as S, MILLISECOND as MS};

std::thread::sleep(2*S + 200*MS);
// or alternatively
std::thread::sleep(2.2*S);

No runtime deps