]> git.lizzy.rs Git - rust.git/commitdiff
Reword comment in mach_timebase_info
authorSamrat Man Singh <samratmansingh@gmail.com>
Tue, 14 Apr 2020 08:29:43 +0000 (13:59 +0530)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 08:29:43 +0000 (13:59 +0530)
Co-Authored-By: Ralf Jung <post@ralfj.de>
src/shims/time.rs

index c22ac9ca1a509f6d11148853d0fcf3af54fac5e9..a87db9878202491ffd1e8aad34839b48017acb69 100644 (file)
@@ -169,9 +169,8 @@ fn mach_timebase_info(&mut self, info_op: OpTy<'tcx, Tag>) -> InterpResult<'tcx,
 
         let info = this.deref_operand(info_op)?;
 
-        // Since we return nanoseconds instead of ticks from
-        // `mach_absolute_time`, we don't need to scale the absolute
-        // time.
+        // Since our emulated ticks in `mach_absolute_time` *are* nanoseconds,
+        // no scaling needs to happen.
         let (numer, denom) = (1,1);
         let imms = [
             immty_from_int_checked(numer, this.machine.layouts.u32)?,