2 releases

Uses old Rust 2015

0.1.1 Jul 28, 2018
0.1.0 Jul 28, 2018

#467 in Date and time

Download history 579/week @ 2024-07-22 453/week @ 2024-07-29 485/week @ 2024-08-05 575/week @ 2024-08-12 644/week @ 2024-08-19 550/week @ 2024-08-26 421/week @ 2024-09-02 509/week @ 2024-09-09 498/week @ 2024-09-16 628/week @ 2024-09-23 676/week @ 2024-09-30 580/week @ 2024-10-07 765/week @ 2024-10-14 1264/week @ 2024-10-21 953/week @ 2024-10-28 570/week @ 2024-11-04

3,581 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