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-14.0.3 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-14.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-14.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-13.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-12.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-12.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-11.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-10.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-10.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-9.0.4 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-9.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-8.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-7.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-6.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-6.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-5.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-0.4.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs
wasmtime-0.4.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_time.rs