Function

CMClockConvertHostTimeToSystemUnits

Converts a host time from CMTime to the host time's native units.

Declaration

uint64_t CMClockConvertHostTimeToSystemUnits(CMTime hostTime);

Discussion

This function performs a scale conversion, not a clock conversion. It can be more accurate than CMTimeConvertScale because the system units may have a non-integer timescale. In macOS, this function converts to the units of mach_absolute_time.

See Also

Accessing and Converting Time

CMClockGetTime

Retrieves the current time from a clock.

CMClockGetAnchorTime

Retrieves the current time from a clock and also the matching time from the clock's reference clock.

CMClockMakeHostTimeFromSystemUnits

Converts a host time from native units to CMTime.