Skip to content

Commit f762c70

Browse files
JOE1994RalfJung
andauthored
Update comments in src/shims/time.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
1 parent 5157b87 commit f762c70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
143143
// Retrieves the frequency of the hardware performance counter.
144144
// The frequency of the performance counter is fixed at system boot and
145145
// is consistent across all processors.
146-
// Miri will assume that the frequency of
147-
// the machine's hardware performance counter is 1 GHz ( = 1 x 10^9 Hz).
146+
// Miri emulates a "hardware" performance counter with a resolution of 1ns,
147+
// and thus 10^9 counts per second.
148148
this.write_scalar(Scalar::from_i64(1_000_000_000), this.deref_operand(lpFrequency_op)?.into())?;
149149
Ok(-1) // Return non-zero on success
150150
}

0 commit comments

Comments
 (0)