Skip to content

Commit

Permalink
Merge pull request #647 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 Nov 27, 2024
2 parents 41128d4 + 6e80845 commit 1893d22
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(100)
Duration::from_secs(1)
} else {
Duration::from_millis(5)
};
Expand Down

0 comments on commit 1893d22

Please sign in to comment.