|
|
@ -42,6 +42,7 @@ impl Unit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[cfg(not(nightly))]
|
|
|
|
#[cfg(not(nightly))]
|
|
|
|
fn multiplier(&self) -> u64 {
|
|
|
|
fn multiplier(&self) -> u64 {
|
|
|
|
|
|
|
|
use Unit::*;
|
|
|
|
match self {
|
|
|
|
match self {
|
|
|
|
Second => 1000,
|
|
|
|
Second => 1000,
|
|
|
|
Minute => Second.multiplier() * 60,
|
|
|
|
Minute => Second.multiplier() * 60,
|
|
|
|