Skip to content

Commit

Permalink
Add Fuchsia to actually_monotonic
Browse files Browse the repository at this point in the history
Fuchsia provides a fully monotonic clock.
  • Loading branch information
cramertj committed Sep 5, 2019
1 parent 6187684 commit bb1e425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/sys/unix/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ mod inner {
pub fn actually_monotonic() -> bool {
(cfg!(target_os = "linux") && cfg!(target_arch = "x86_64")) ||
(cfg!(target_os = "linux") && cfg!(target_arch = "x86")) ||
cfg!(target_os = "fuchsia") ||
false // last clause, used so `||` is always trailing above
}

Expand Down

0 comments on commit bb1e425

Please sign in to comment.