/libs/ObjectAL/Support/mach_timing.h
C Header | 18 lines | 2 code | 2 blank | 14 comment | 0 complexity | 03b6550f2ffad244472ea9b1fe7427ea MD5 | raw file
Possible License(s): Apache-2.0
1/* 2 * mach_timing.h 3 * ObjectAL 4 * 5 * Created by Karl Stenerud on 10-08-18. 6 * 7 */ 8 9#include <mach/mach_time.h> 10 11/** Calculates the difference, in seconds, between two time values that were 12 * obtained through mach_absolute_time(). 13 * 14 * @param endTime the later time value. 15 * @param startTime the earlier time value. 16 * @return the time difference in seconds. 17 */ 18double mach_absolute_difference_seconds(uint64_t endTime, uint64_t startTime);