mirror of https://github.com/linebender/xilem
Update masonry/src/contexts.rs
Co-authored-by: Olivier FAURE <couteaubleu@gmail.com>
This commit is contained in:
parent
9616d23454
commit
f3b89394ec
|
@ -716,8 +716,8 @@ impl_context_method!(
|
|||
///
|
||||
/// The return value is a token, which can be used to associate the
|
||||
/// request with the event.
|
||||
pub fn request_timer_rel(&mut self, deadline: Duration) -> TimerId {
|
||||
let deadline = Instant::now() + deadline;
|
||||
pub fn request_timer_relative(&mut self, offset: Duration) -> TimerId {
|
||||
let deadline = Instant::now() + offset;
|
||||
self.request_timer(deadline)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue