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