Skip to content

Commit fff45b7

Browse files
samratRalfJung
andauthored
Reword comment in mach_timebase_info
Co-Authored-By: Ralf Jung <[email protected]>
1 parent 90729bb commit fff45b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shims/time.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
169169

170170
let info = this.deref_operand(info_op)?;
171171

172-
// Since we return nanoseconds instead of ticks from
173-
// `mach_absolute_time`, we don't need to scale the absolute
174-
// time.
172+
// Since our emulated ticks in `mach_absolute_time` *are* nanoseconds,
173+
// no scaling needs to happen.
175174
let (numer, denom) = (1,1);
176175
let imms = [
177176
immty_from_int_checked(numer, this.machine.layouts.u32)?,

0 commit comments

Comments
 (0)