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 #if !defined( BOOST_USE_WINDOWS_H )
23 BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
25 boost::winapi::HANDLE_ hThread,
26 ::_FILETIME* lpCreationTime,
27 ::_FILETIME* lpExitTime,
28 ::_FILETIME* lpKernelTime,
29 ::_FILETIME* lpUserTime);
36 BOOST_FORCEINLINE BOOL_ GetThreadTimes(
38 LPFILETIME_ lpCreationTime,
39 LPFILETIME_ lpExitTime,
40 LPFILETIME_ lpKernelTime,
41 LPFILETIME_ lpUserTime)
43 return ::GetThreadTimes(
45 reinterpret_cast< ::_FILETIME* >(lpCreationTime),
46 reinterpret_cast< ::_FILETIME* >(lpExitTime),
47 reinterpret_cast< ::_FILETIME* >(lpKernelTime),
48 reinterpret_cast< ::_FILETIME* >(lpUserTime));
54 #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
55 #endif // BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_