Function

CMClockGetHostTimeClock()

Returns a reference to the singleton clock logically identified with host time.

Declaration

func CMClockGetHostTimeClock() -> CMClock

Discussion

In macOS, the host time clock uses mach_absolute_time but returns a value with a large integer timescale (e.g. nanoseconds).