pub fn timestamp_cycles() -> u64 {
    #[cfg(target_arch = "x86_64")]
    // Safe because there's nothing that can go wrong with this call.
    unsafe {
        std::arch::x86_64::_rdtsc() as u64
    }
    #[cfg(not(target_arch = "x86_64"))]
    {
        get_time_ns(ClockType::Monotonic)
    }
}
/// Returns a timestamp in nanoseconds from a monotonic clock.
///
/// Uses `_rdstc` on `x86_64` and [`get_time`](fn.get_time.html) on other architectures.
Returns a timestamp in nanoseconds from a monotonic clock.
Returns a timestamp in nanoseconds from a monotonic clock .
pub fn timestamp_cycles() -> u64 {
    #[cfg(target_arch = "x86_64")]
    // Safe because there's nothing that can go wrong with this call.
    unsafe {
        std::arch::x86_64::_rdtsc() as u64
    }
    #[cfg(not(target_arch = "x86_64"))]
    {
        get_time_ns(ClockType::Monotonic)
    }
}
pub fn timestamp_cycles ( ) -> u64 { # [ cfg ( target_arch " " ) ] // Safe because there's nothing that can go wrong with this call. unsafe { std :: arch :: x86_64 :: _rdtsc ( ) as u64 } # [ cfg ( not ( target_arch " " ) ) ] { get_time_ns ( ClockType :: Monotonic ) } }
Returns a timestamp in nanoseconds from a monotonic clock.
Returns a timestamp in nanoseconds from a monotonic clock .