]> git.lizzy.rs Git - rust.git/commit
[macOS] Implement `mach_timebase_info`
authorSamrat Man Singh <samratmansingh@gmail.com>
Mon, 13 Apr 2020 15:48:34 +0000 (21:18 +0530)
committerSamrat Man Singh <samratmansingh@gmail.com>
Mon, 13 Apr 2020 15:48:34 +0000 (21:18 +0530)
commit5f6d250b303d839896ead366153997d0e8e013e0
tree84b36fe4a4d82589d75e82977bae3104a0e4036a
parent4545effbcf071cd3b279ddb65aa4af6ac892c1e9
[macOS] Implement `mach_timebase_info`

Since we return nanoseceonds instead of ticks from
`mach_absolute_time`, we don't need to scale the absolute time
src/shims/foreign_items/posix/macos.rs
src/shims/time.rs
tests/run-pass/time.rs