Skip to content

Commit a494825

Browse files
JOE1994RalfJung
andauthored
Update comments in src/shims/time.rs
Co-Authored-By: Ralf Jung <[email protected]>
1 parent ff982b1 commit a494825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
125125
this.check_no_isolation("QueryPerformanceCounter")?;
126126

127127
// QPC uses a hardware counter as its basis.
128-
// Miri will assume that the machine's hardware counter has a resolution of 1 nanosecond.
128+
// Miri will emulate a counter with a resolution of 1 nanosecond.
129129
let duration = Instant::now().duration_since(this.machine.time_anchor);
130130
let qpc = i64::try_from(duration.as_nanos())
131131
.map_err(|_| err_unsup_format!("programs running longer than 2^63 nanoseconds are not supported"))?;

0 commit comments

Comments
 (0)