pub(crate) fn start(&mut self, interval_ms: u64) {
        // Arm the log write timer.
        let timer_state = TimerState::Periodic {
            current: Duration::from_millis(interval_ms),
            interval: Duration::from_millis(interval_ms),
        };
        self.write_metrics_event_fd
            .set_state(timer_state, SetTimeFlags::Default);

        // Write the metrics straight away to check the process startup time.
        self.write_metrics();
    }
/// Start the periodic metrics engine which will flush metrics every `interval_ms` millisecs.
Start the periodic metrics engine which will flush metrics every `interval_ms` millisecs.
Start the periodic metrics engine which will flush metrics every ` interval_ms ` millisecs .
pub(crate) fn start(&mut self, interval_ms: u64) {
        // Arm the log write timer.
        let timer_state = TimerState::Periodic {
            current: Duration::from_millis(interval_ms),
            interval: Duration::from_millis(interval_ms),
        };
        self.write_metrics_event_fd
            .set_state(timer_state, SetTimeFlags::Default);
        // Write the metrics straight away to check the process startup time.
        self.write_metrics();
    }
pub ( crate ) fn start ( & mut self , interval_ms : u64 ) { // Arm the log write timer. let timer_state = TimerState :: Periodic { current : Duration :: from_millis ( interval_ms ) , interval : Duration :: from_millis ( interval_ms ) , } ; self . write_metrics_event_fd . set_state ( timer_state , SetTimeFlags :: Default ) ; // Write the metrics straight away to check the process startup time. self . write_metrics ( ) ; }
Start the periodic metrics engine which will flush metrics every `interval_ms` millisecs.
Start the periodic metrics engine which will flush metrics every ` interval_ms ` millisecs .
&mut self
interval_ms
u64
&mut self
interval_ms
u64