Compile-time duration parsing.
```rust use core::time::Duration; use duration_macro::duration;
asserteq!(duration!(2 d 1 m), Duration::fromsecs(3600 * 24 * 2 + 60 * 1)); asserteq!(duration!(1 m 2 d), Duration::fromsecs(3600 * 24 * 2 + 60 * 1)); asserteq!(duration!(100 ns), Duration::fromnanos(100)); asserteq!(duration!({100 * 2} ns), Duration::fromnanos(200)); ```
For more details, please see the [duration!] docs.
License: MIT/Apache-2.0