floating-duration
Allows converting a Duration
to floating-point seconds, milliseconds and microseconds.
Additionally, it allows automatic formatting of a Duration
(it automatically chooses
a unit).
Usage
Minimum Rust version: 1.8.0
Add this crate to Cargo.toml
[]
= "0.1.2"
Now you can easily print a Duration
:
extern crate floating_duration;
use Instant;
use ;
Contribution
Contribution is very welcome!
Any contribution you submit is assumed to be dual-licensed under MIT/Apache-2.
License
floating-duration is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT.