From 79c375af0fb07857209eabbce57813b22660e4ff Mon Sep 17 00:00:00 2001 From: Steve Pentland Date: Sat, 3 Feb 2018 16:27:38 -0500 Subject: [PATCH] Remove winnt feature, not needed. --- Cargo.toml | 2 +- src/hyperfine/timer/cputimer.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c012bb8..9645199 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ atty = "0.2.2" libc = "0.2" [target.'cfg(target_os = "windows")'.dependencies] -winapi = { version = "0.3.4", features = [ "processthreadsapi", "minwindef", "winnt"] } +winapi = { version = "0.3.4", features = [ "processthreadsapi", "minwindef"] } [dependencies.clap] version = "2" diff --git a/src/hyperfine/timer/cputimer.rs b/src/hyperfine/timer/cputimer.rs index 0ecdc33..7f5086c 100644 --- a/src/hyperfine/timer/cputimer.rs +++ b/src/hyperfine/timer/cputimer.rs @@ -50,6 +50,7 @@ fn get_cpu_times() -> CPUTimes { // Winapi reports times as per 100 nanosecond const HUNDRED_NS_PER_MS: i64 = 10; + let mut _ctime = FILETIME { dwLowDateTime: 0, dwHighDateTime: 0,