From a494825d5aca389f5c6ff7407bd927a5faee35b8 Mon Sep 17 00:00:00 2001 From: Youngsuk Kim Date: Thu, 2 Apr 2020 16:03:56 -0400 Subject: [PATCH] Update comments in src/shims/time.rs Co-Authored-By: Ralf Jung --- src/shims/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shims/time.rs b/src/shims/time.rs index d4c88cdb614..07819fd56f1 100644 --- a/src/shims/time.rs +++ b/src/shims/time.rs @@ -125,7 +125,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx this.check_no_isolation("QueryPerformanceCounter")?; // QPC uses a hardware counter as its basis. - // Miri will assume that the machine's hardware counter has a resolution of 1 nanosecond. + // Miri will emulate a counter with a resolution of 1 nanosecond. let duration = Instant::now().duration_since(this.machine.time_anchor); let qpc = i64::try_from(duration.as_nanos()) .map_err(|_| err_unsup_format!("programs running longer than 2^63 nanoseconds are not supported"))?;