1 2 3 4 5 6 7 8
use std::time::{Duration, Instant}; /// Represents a started measurement. When dropped, it will log the /// duration into memory. pub struct MeasurementTracker { pub(crate) start_time: Instant, pub(crate) overhead: Duration, }
1 2 3 4 5 6 7 8
use std::time::{Duration, Instant}; /// Represents a started measurement. When dropped, it will log the /// duration into memory. pub struct MeasurementTracker { pub(crate) start_time: Instant, pub(crate) overhead: Duration, }