fbxclock.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /****************************************************************************************
  2. Copyright (C) 2015 Autodesk, Inc.
  3. All rights reserved.
  4. Use of this software is subject to the terms of the Autodesk license agreement
  5. provided at the time of installation or download, or which otherwise accompanies
  6. this software in either electronic or hard copy form.
  7. ****************************************************************************************/
  8. //! \file fbxclock.h
  9. #ifndef _FBXSDK_CORE_SYNC_CLOCK_H_
  10. #define _FBXSDK_CORE_SYNC_CLOCK_H_
  11. #include <fbxsdk/fbxsdk_def.h>
  12. #ifndef FBXSDK_ENV_WINSTORE
  13. #include <fbxsdk/fbxsdk_nsbegin.h>
  14. /** Put the current thread to sleep.
  15. * \param pMilliseconds The duration of the sleep in milli-seconds.
  16. */
  17. FBXSDK_DLL void FbxSleep(int pMilliseconds);
  18. /** Retrieves the current value of the high-resolution performance counter.
  19. * \return The current value of the high-resolution performance counter, in "counts".
  20. * \remarks To convert "counts" into time, divide it by the frequency available from FbxGetHighResFrequency().
  21. */
  22. FBXSDK_DLL FbxLongLong FbxGetHighResCounter();
  23. /** Retrieves the frequency of the high-resolution performance counter.
  24. * \return The frequency of the high-resolution performance counter value, in "counts" per second.
  25. * \remarks The first time this function is called, the frequency is queried from the system and then cached
  26. * so that further requests are fast. This means it is guaranteed to not change during run-time.
  27. */
  28. FBXSDK_DLL FbxLongLong FbxGetHighResFrequency();
  29. #include <fbxsdk/fbxsdk_nsend.h>
  30. #endif /* !FBXSDK_ENV_WINSTORE */
  31. #endif /* _FBXSDK_CORE_SYNC_CLOCK_H_ */