Struct clocksource::Clocksource [] [src]

pub struct Clocksource { /* fields omitted */ }

Methods

impl Clocksource
[src]

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 Clone for Clocksource
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Clocksource
[src]

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