mirl 9.2.0

Miners Rust Lib - A massive collection of ever growing and changing functions, structs, and enums. Check the description for compatibility and toggleable features! (Most of the lib is controlled by flags/features so the lib can continue to be lightweight despite its size)
#[cfg(feature = "std")]
/// Native implementation of the Time trait
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "c_compatible", repr(C))]
pub struct NativeTime {
    /// The starting time
    pub time: std::time::Instant,
}
#[cfg(feature = "std")]
impl NativeTime {
    /// Create a new time instance
    #[must_use]
    pub fn new() -> Self {
        Self {
            time: std::time::Instant::now(),
        }
    }
}
#[cfg(feature = "std")]
impl Default for NativeTime {
    fn default() -> Self {
        Self::new()
    }
}
#[cfg(feature = "std")]
impl super::Time for NativeTime {
    fn get_elapsed_time(&self) -> f64 {
        self.time.elapsed().as_secs_f64()
    }
}