cidre 0.12.0

Apple frameworks bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::cf;

/// [`cf::TimeInterval`] derived by calling mach_absolute_time()
/// and converting the result to seconds.
/// ```
/// use cidre::ca;
///
/// println!("{:?}", ca::current_media_time());
/// ```
#[inline]
pub fn current_media_time() -> cf::TimeInterval {
    unsafe { CACurrentMediaTime() }
}

#[link(name = "QuartzCore", kind = "framework")]
unsafe extern "C-unwind" {
    fn CACurrentMediaTime() -> cf::TimeInterval;
}