Fix clock example eventually skipping a second
This commit is contained in:
parent
e7c400a0aa
commit
979edeb213
1 changed files with 1 additions and 1 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue