Struct tic::Clocksource []

pub struct Clocksource { /* fields omitted */ }

Methods

impl Clocksource

create a new clocksource

allows manual configuration of the Clocksource and performs initial calibration

get the approximate frequency of the source clock in Hz

get the raw counter reading of the source clock

get nanoseconds from the reference clock

get the nanoseconds from the source clock

calibrate the source frequency against the reference

recalculate the frequency, without changing the reference time

estimate of the phase error between the source and reference clocksource

converts a raw reading to approximation of reference in nanoseconds

Trait Implementations

impl Default for Clocksource

Returns the "default value" for a type. Read more

impl Clone for Clocksource

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more