/libs/ObjectAL/Support/mach_timing.h

http://github.com/kstenerud/ObjectAL-for-iPhone · C Header · 18 lines · 2 code · 2 blank · 14 comment · 0 complexity · 03b6550f2ffad244472ea9b1fe7427ea MD5 · raw file

  1. /*
  2. * mach_timing.h
  3. * ObjectAL
  4. *
  5. * Created by Karl Stenerud on 10-08-18.
  6. *
  7. */
  8. #include <mach/mach_time.h>
  9. /** Calculates the difference, in seconds, between two time values that were
  10. * obtained through mach_absolute_time().
  11. *
  12. * @param endTime the later time value.
  13. * @param startTime the earlier time value.
  14. * @return the time difference in seconds.
  15. */
  16. double mach_absolute_difference_seconds(uint64_t endTime, uint64_t startTime);