pub fn event_time_or_now(event_time: Option<i64>) -> EventTime {
    match event_time {
        Some(time) => time as EventTime,
        None => zx::Time::get(zx::ClockId::Monotonic).into_nanos() as EventTime,
    }
}
/// Returns the event time if it exists, otherwise returns the current time.
///
/// # Parameters
/// - `event_time`: The event time from an InputReport.
Returns the event time if it exists, otherwise returns the current time.
Returns the event time if it exists otherwise returns the current time .
pub fn event_time_or_now(event_time: Option<i64>) -> EventTime {
    match event_time {
        Some(time) => time as EventTime,
        None => zx::Time::get(zx::ClockId::Monotonic).into_nanos() as EventTime,
    }
}
pub fn event_time_or_now ( event_time : Option < i64 > ) -> EventTime { match event_time { Some ( time ) => time as EventTime , None => zx :: Time :: get ( zx :: ClockId :: Monotonic ) . into_nanos ( ) as EventTime , } }
Returns the event time if it exists, otherwise returns the current time.
Returns the event time if it exists otherwise returns the current time .
event_time
Option<i64>
event_time
Option<i64>
The event time from an InputReport.
The event time from an InputReport .