input_pipeline::input_device

Function event_time_or_now

Source
pub fn event_time_or_now(event_time: Option<i64>) -> MonotonicInstant
Expand description

Returns the event time if it exists, otherwise returns the current time.

ยงParameters

  • event_time: The event time from an InputReport.