mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Use f64::from instead of as f64
This commit is contained in:
1 parent
a0bd0248ce
commit
76119e6664
1 file changed
+1
-1
@@ -25,6 +25,6 @@ impl TimerStop for WallClockTimer {
|
||||
|
||||
fn stop(&self) -> Second {
|
||||
let duration = self.start.elapsed();
|
||||
duration.as_secs() as f64 + (duration.subsec_nanos() as f64) * 1e-9
|
||||
duration.as_secs() as f64 + f64::from(duration.subsec_nanos()) * 1e-9
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user