mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-30 08:40:18 +00:00
Re-order imports
This commit is contained in:
1 parent
30c381fe2a
commit
9df6174bc2
16 files changed
+45
-44
No files matched your search
@@ -1,12 +1,12 @@
|
||||
#![cfg(not(windows))]
|
||||
|
||||
use std::mem;
|
||||
use std::process::Child;
|
||||
|
||||
use super::internal::{CPUInterval, CPUTimes};
|
||||
use crate::timer::{TimerStart, TimerStop};
|
||||
use crate::units::Second;
|
||||
|
||||
use std::mem;
|
||||
use std::process::Child;
|
||||
|
||||
pub fn get_cpu_timer() -> Box<dyn TimerStop<Result = (Second, Second)>> {
|
||||
Box::new(CPUTimer::start())
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#![cfg(windows)]
|
||||
|
||||
use super::internal::CPUTimes;
|
||||
use crate::timer::{TimerStart, TimerStop};
|
||||
use crate::units::Second;
|
||||
|
||||
use winapi::um::processthreadsapi::GetProcessTimes;
|
||||
use winapi::um::winnt::HANDLE;
|
||||
|
||||
use std::mem;
|
||||
use std::os::windows::io::{AsRawHandle, RawHandle};
|
||||
use std::process::Child;
|
||||
|
||||
use winapi::um::processthreadsapi::GetProcessTimes;
|
||||
use winapi::um::winnt::HANDLE;
|
||||
|
||||
use super::internal::CPUTimes;
|
||||
use crate::timer::{TimerStart, TimerStop};
|
||||
use crate::units::Second;
|
||||
|
||||
const HUNDRED_NS_PER_MS: i64 = 10;
|
||||
|
||||
pub fn get_cpu_timer(process: &Child) -> Box<dyn TimerStop<Result = (Second, Second)>> {
|
||||
|
||||
Reference in new issue
Block a user