Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.7 KiB

  1. /*
  2. * CVHostTime.h
  3. * CoreVideo
  4. *
  5. * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
  6. *
  7. */
  8. /*! @header CVHostTime.h
  9. @copyright 2004 Apple Computer, Inc. All rights reserved.
  10. @availability Mac OS X 10.4 or later
  11. @discussion Utility functions for retrieving and working with the host time.
  12. */
  13. #if !defined(__COREVIDEO_CVHOSTTIME_H__)
  14. #define __COREVIDEO_CVHOSTTIME_H__ 1
  15. #include <TargetConditionals.h>
  16. #if TARGET_OS_MAC
  17. #include <QuartzCore/CVBase.h>
  18. #else
  19. #include <CVBase.h>
  20. #endif
  21. #if defined(__cplusplus)
  22. extern "C" {
  23. #endif
  24. /*!
  25. @function CVGetCurrentHostTime
  26. @abstract Retrieve the current value of the host time base.
  27. @discussion On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API
  28. may be used interchangeably.
  29. @result The current host time.
  30. */
  31. extern uint64_t CVGetCurrentHostTime() AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
  32. /*!
  33. @function CVGetHostClockFrequency
  34. @abstract Retrieve the frequency of the host time base.
  35. @discussion On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API
  36. may be used interchangeably.
  37. @result The current host frequency.
  38. */
  39. extern double CVGetHostClockFrequency() AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
  40. /*!
  41. @function CVGetHostClockMinimumTimeDelta
  42. @abstract Retrieve the smallest possible increment in the host time base.
  43. @result The smallest valid increment in the host time base.
  44. */
  45. extern uint32_t CVGetHostClockMinimumTimeDelta() AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
  46. #if defined(__cplusplus)
  47. }
  48. #endif
  49. #endif