pub fn new(interrupt_evt: EventFd) -> RTC {
        RTC {
            // This is used only for duration measuring purposes.
            previous_now: Instant::now(),
            tick_offset: utils::time::get_time(utils::time::ClockType::Real) as i64,
            match_value: 0,
            load: 0,
            imsc: 0,
            ris: 0,
            interrupt_evt,
        }
    }
/// Constructs an AMBA PL031 RTC device.
Constructs an AMBA PL031 RTC device.
Constructs an AMBA PL031 RTC device .
pub fn new(interrupt_evt: EventFd) -> RTC {
        RTC {
            // This is used only for duration measuring purposes.
            previous_now: Instant::now(),
            tick_offset: utils::time::get_time(utils::time::ClockType::Real) as i64,
            match_value: 0,
            load: 0,
            imsc: 0,
            ris: 0,
            interrupt_evt,
        }
    }
pub fn new ( interrupt_evt : EventFd ) -> RTC { RTC { // This is used only for duration measuring purposes. previous_now : Instant :: now ( ) , tick_offset : utils :: time :: get_time ( utils :: time :: ClockType :: Real ) as i64 , match_value : 0 , load : 0 , imsc : 0 , ris : 0 , interrupt_evt , } }
Constructs an AMBA PL031 RTC device.
Constructs an AMBA PL031 RTC device .
interrupt_evt
EventFd