You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: time_real.rs
    path of file: ./repos/rerun/crates/re_log_types/src
    
    the code of the file until where you have to start completion: use fixed::{traits::LossyInto as _, FixedI128};

use crate::TimeInt;

/// Either nanoseconds or sequence numbers.
///
/// Must be matched with a [`crate::TimeType`] to know what.
///
/// Used both for time points and durations.
///
/// This is like [`Ti
    
    fn from(value: f64) -> Self {
        debug_assert!(!value.is_nan());
        if value.is_nan() {
            re_log::warn_once!("NaN time detected");
            Self(0.into())
        } else if let Some(num) = FixedI128::checked_from_num(value) {
            Self(num)
        } else if value < 0.0 {
            Self::MIN
        } else {
            Self::MAX
        }
    }