mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 10:55:14 +00:00
Update comments in src/shims/time.rs
Co-Authored-By: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
5157b8769f
commit
f762c70b51
@ -143,8 +143,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
// Retrieves the frequency of the hardware performance counter.
|
||||
// The frequency of the performance counter is fixed at system boot and
|
||||
// is consistent across all processors.
|
||||
// Miri will assume that the frequency of
|
||||
// the machine's hardware performance counter is 1 GHz ( = 1 x 10^9 Hz).
|
||||
// Miri emulates a "hardware" performance counter with a resolution of 1ns,
|
||||
// and thus 10^9 counts per second.
|
||||
this.write_scalar(Scalar::from_i64(1_000_000_000), this.deref_operand(lpFrequency_op)?.into())?;
|
||||
Ok(-1) // Return non-zero on success
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user