File indexing completed on 2025-01-18 09:53:48
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_WINAPI_TIMERS_HPP_INCLUDED_
0010 #define BOOST_WINAPI_TIMERS_HPP_INCLUDED_
0011
0012 #include <boost/winapi/basic_types.hpp>
0013 #include <boost/winapi/detail/header.hpp>
0014
0015 #ifdef BOOST_HAS_PRAGMA_ONCE
0016 #pragma once
0017 #endif
0018
0019 #if !defined( BOOST_USE_WINDOWS_H )
0020 extern "C" {
0021 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0022 QueryPerformanceCounter(::_LARGE_INTEGER* lpPerformanceCount);
0023
0024 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0025 QueryPerformanceFrequency(::_LARGE_INTEGER* lpFrequency);
0026 }
0027 #endif
0028
0029
0030 namespace boost {
0031 namespace winapi {
0032
0033 BOOST_FORCEINLINE BOOL_ QueryPerformanceCounter(LARGE_INTEGER_* lpPerformanceCount)
0034 {
0035 return ::QueryPerformanceCounter(reinterpret_cast< ::_LARGE_INTEGER* >(lpPerformanceCount));
0036 }
0037
0038 BOOST_FORCEINLINE BOOL_ QueryPerformanceFrequency(LARGE_INTEGER_* lpFrequency)
0039 {
0040 return ::QueryPerformanceFrequency(reinterpret_cast< ::_LARGE_INTEGER* >(lpFrequency));
0041 }
0042
0043 }
0044 }
0045
0046 #include <boost/winapi/detail/footer.hpp>
0047
0048 #endif