2013-08-07 02:08:50 +08:00
|
|
|
/**
|
|
|
|
* This file is part of the mingw-w64 runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER within this package.
|
|
|
|
*/
|
|
|
|
#ifndef _APISETREALTIME_
|
|
|
|
#define _APISETREALTIME_
|
|
|
|
|
|
|
|
#include <apiset.h>
|
|
|
|
#include <apisetcconv.h>
|
|
|
|
#include <minwindef.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
|
2020-11-26 20:25:18 +08:00
|
|
|
|
2013-08-07 02:08:50 +08:00
|
|
|
#if _WIN32_WINNT >= 0x0600
|
|
|
|
WINBASEAPI WINBOOL WINAPI QueryThreadCycleTime (HANDLE ThreadHandle, PULONG64 CycleTime);
|
|
|
|
WINBASEAPI WINBOOL WINAPI QueryProcessCycleTime (HANDLE ProcessHandle, PULONG64 CycleTime);
|
|
|
|
WINBASEAPI WINBOOL WINAPI QueryIdleProcessorCycleTime (PULONG BufferLength, PULONG64 ProcessorIdleCycleTime);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if _WIN32_WINNT >= 0x0601
|
|
|
|
WINBASEAPI WINBOOL WINAPI QueryIdleProcessorCycleTimeEx (USHORT Group, PULONG BufferLength, PULONG64 ProcessorIdleCycleTime);
|
|
|
|
#endif
|
2020-11-26 20:25:18 +08:00
|
|
|
|
|
|
|
#endif /* WINAPI_PARTITION_DESKTOP */
|
2013-08-07 02:08:50 +08:00
|
|
|
|
|
|
|
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
|
2020-11-26 20:25:18 +08:00
|
|
|
|
|
|
|
WINBASEAPI VOID WINAPI QueryInterruptTimePrecise (PULONGLONG lpInterruptTimePrecise);
|
|
|
|
WINBASEAPI VOID WINAPI QueryUnbiasedInterruptTimePrecise (PULONGLONG lpUnbiasedInterruptTimePrecise);
|
|
|
|
WINBASEAPI VOID WINAPI QueryInterruptTime (PULONGLONG lpInterruptTime);
|
|
|
|
|
2013-08-07 02:08:50 +08:00
|
|
|
#if _WIN32_WINNT >= 0x0601
|
|
|
|
WINBASEAPI WINBOOL WINAPI QueryUnbiasedInterruptTime (PULONGLONG UnbiasedTime);
|
|
|
|
#endif
|
2020-11-26 20:25:18 +08:00
|
|
|
|
|
|
|
WINBASEAPI HRESULT WINAPI QueryAuxiliaryCounterFrequency (PULONGLONG lpAuxiliaryCounterFrequency);
|
|
|
|
WINBASEAPI HRESULT WINAPI ConvertAuxiliaryCounterToPerformanceCounter (ULONGLONG ullAuxiliaryCounterValue, PULONGLONG lpPerformanceCounterValue, PULONGLONG lpConversionError);
|
|
|
|
WINBASEAPI HRESULT WINAPI ConvertPerformanceCounterToAuxiliaryCounter (ULONGLONG ullPerformanceCounterValue, PULONGLONG lpAuxiliaryCounterValue, PULONGLONG lpConversionError);
|
|
|
|
|
|
|
|
#endif /* WINAPI_PARTITION_APP */
|
2013-08-07 02:08:50 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2020-11-26 20:25:18 +08:00
|
|
|
|
|
|
|
#endif /* _APISETREALTIME_ */
|