From 979edeb213c2ca0dd394a9a6c68a30dfab371263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 12 Feb 2020 22:38:36 +0100 Subject: [PATCH] Fix `clock` example eventually skipping a second --- examples/clock/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index 160adffd..25a213cd 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -51,7 +51,7 @@ impl Application for Clock { } fn subscription(&self) -> Subscription { - time::every(std::time::Duration::from_millis(1000)).map(Message::Tick) + time::every(std::time::Duration::from_millis(500)).map(Message::Tick) } fn view(&mut self) -> Element {