2 releases

Uses old Rust 2015

0.1.1 Jul 28, 2018
0.1.0 Jul 28, 2018

#449 in Date and time

Download history 1527/week @ 2024-03-28 1300/week @ 2024-04-04 1520/week @ 2024-04-11 2077/week @ 2024-04-18 1239/week @ 2024-04-25 1920/week @ 2024-05-02 1430/week @ 2024-05-09 1335/week @ 2024-05-16 601/week @ 2024-05-23 650/week @ 2024-05-30 717/week @ 2024-06-06 811/week @ 2024-06-13 699/week @ 2024-06-20 699/week @ 2024-06-27 684/week @ 2024-07-04 552/week @ 2024-07-11

2,717 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