2 * Copyright 2010 Vicente J. Botet Escriba
3 * Copyright 2015 Andrey Semashev
5 * Distributed under the Boost Software License, Version 1.0.
6 * See http://www.boost.org/LICENSE_1_0.txt
9 #ifndef BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_
10 #define BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_
12 #include <boost/winapi/basic_types.hpp>
13 #include <boost/winapi/time.hpp>
15 #ifdef BOOST_HAS_PRAGMA_ONCE
19 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
21 #include <boost/winapi/detail/header.hpp>
23 #if !defined( BOOST_USE_WINDOWS_H )
25 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
27 boost::winapi::HANDLE_ hThread,
28 ::_FILETIME* lpCreationTime,
29 ::_FILETIME* lpExitTime,
30 ::_FILETIME* lpKernelTime,
31 ::_FILETIME* lpUserTime);
38 BOOST_FORCEINLINE BOOL_ GetThreadTimes(
40 LPFILETIME_ lpCreationTime,
41 LPFILETIME_ lpExitTime,
42 LPFILETIME_ lpKernelTime,
43 LPFILETIME_ lpUserTime)
45 return ::GetThreadTimes(
47 reinterpret_cast< ::_FILETIME* >(lpCreationTime),
48 reinterpret_cast< ::_FILETIME* >(lpExitTime),
49 reinterpret_cast< ::_FILETIME* >(lpKernelTime),
50 reinterpret_cast< ::_FILETIME* >(lpUserTime));
56 #include <boost/winapi/detail/footer.hpp>
58 #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
59 #endif // BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_