Sha256: b9493e820acf21fee1f6e7e82a510d887925dc1117d6b71b681acc40cfa776af

Contents?: true

Size: 690 Bytes

Versions: 38

Compression:

Stored size: 690 Bytes

Contents

//! This module corresponds to `mach/mach_time.h`
use kern_return::kern_return_t;
pub type mach_timebase_info_t = *mut mach_timebase_info;
pub type mach_timebase_info_data_t = mach_timebase_info;

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Hash, PartialOrd, PartialEq, Eq, Ord)]
pub struct mach_timebase_info {
    pub numer: u32,
    pub denom: u32,
}

extern "C" {
    pub fn mach_timebase_info(info: mach_timebase_info_t) -> kern_return_t;
    pub fn mach_wait_until(deadline: u64) -> kern_return_t;
    pub fn mach_absolute_time() -> u64;
    pub fn mach_approximate_time() -> u64;
    pub fn mach_continuous_time() -> u64;
    pub fn mach_continuous_approximate_time() -> u64;
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-28.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-27.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-26.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-25.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-25.0.1 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-25.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-24.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-23.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-22.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-21.0.1 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-20.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-20.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_time.rs
wasmtime-18.0.3 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-17.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-17.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-16.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-15.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-15.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-14.0.4 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs