Skip to content
Myr

Fix warning on Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 96cd2bd · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/timer/windows_timer.rs+1 added-1 removed
11 unmodified lines
12use std::process::Child;1314const HUNDRED_NS_PER_MS: i64 = 10;1516pub fn get_cpu_timer(process: &Child) -> Box<TimerStop<Result = (Second, Second)>> {16pub fn get_cpu_timer(process: &Child) -> Box<dyn TimerStop<Result = (Second, Second)>> {17 Box::new(CPUTimer::start_for_process(process))18}1920struct CPUTimer {
63 unmodified lines