time_util

Function time_at_monotonic

Source
pub fn time_at_monotonic<Reference: Timeline, Output: Timeline>(
    clock: &Clock<Reference, Output>,
    reference: Instant<Reference>,
) -> Instant<Output>
Expand description

Returns the time on the clock at a given monotonic reference time. This calculates the time based on the clock transform definition, which only contains the most recent segment. This is only useful for calculating the time for monotonic times close to the current time.