durations 0.1.1

Duration constants
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented1 out of 1 items with examples
  • Size
  • Source code size: 15.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 732.51 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • newpavlov/durations-rs
    3 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • newpavlov

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.