Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:48

0001 /*
0002  * Copyright 2010 Vicente J. Botet Escriba
0003  * Copyright 2015 Andrey Semashev
0004  *
0005  * Distributed under the Boost Software License, Version 1.0.
0006  * See http://www.boost.org/LICENSE_1_0.txt
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 } // extern "C"
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 // BOOST_WINAPI_TIMERS_HPP_INCLUDED_