Re-order imports

This commit is contained in:
David Peter authored and David Peter committed 2021-08-24 22:44:08 +02:00
1 parent 30c381fe2a
commit 9df6174bc2
16 files changed
+45 -44

No files matched your search

+3 -3
View File
@@ -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())
}
+7 -7
View File
@@ -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)>> {