Skip to content

Commit

Permalink
Merge pull request #610 from hermit-os/slow-sleep
Browse files Browse the repository at this point in the history
fix(demo): allow even slower sleep on debug
  • Loading branch information
mkroening authored Aug 22, 2024
2 parents 5a4d7ef + 5a053f0 commit 7130d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demo/src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn sleep() {
eprintln!("Measured time for {duration:?} sleep: {elapsed:?}");
assert!(elapsed >= duration);
let expected_delay = if cfg!(debug_assertions) {
Duration::from_millis(20)
Duration::from_millis(100)
} else {
Duration::from_millis(5)
};
Expand Down

0 comments on commit 7130d47

Please sign in to comment.