Fix `clock` example eventually skipping a second

This commit is contained in:
Héctor Ramón Jiménez 2020-02-12 22:38:36 +01:00
parent e7c400a0aa
commit 979edeb213
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ impl Application for Clock {
}
fn subscription(&self) -> Subscription<Message> {
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<Message> {