1919#include < time.h>
2020#include < boost/assert.hpp>
2121
22- #include < boost/detail/ winapi/get_last_error.hpp>
23- #include < boost/detail/ winapi/get_current_process.hpp>
22+ #include < boost/winapi/get_last_error.hpp>
23+ #include < boost/winapi/get_current_process.hpp>
2424#if BOOST_PLAT_WINDOWS_DESKTOP
25- #include < boost/detail/ winapi/get_process_times.hpp>
25+ #include < boost/winapi/get_process_times.hpp>
2626#endif
2727
2828namespace boost
@@ -72,10 +72,10 @@ process_user_cpu_clock::time_point process_user_cpu_clock::now() BOOST_NOEXCEPT
7272{
7373
7474 // note that Windows uses 100 nanosecond ticks for FILETIME
75- boost::detail:: winapi::FILETIME_ creation, exit, user_time, system_time;
75+ boost::winapi::FILETIME_ creation, exit, user_time, system_time;
7676
77- if ( boost::detail:: winapi::GetProcessTimes (
78- boost::detail:: winapi::GetCurrentProcess (), &creation, &exit,
77+ if ( boost::winapi::GetProcessTimes (
78+ boost::winapi::GetCurrentProcess (), &creation, &exit,
7979 &system_time, &user_time ) )
8080 {
8181 return time_point (duration (
@@ -97,10 +97,10 @@ process_user_cpu_clock::time_point process_user_cpu_clock::now(
9797{
9898
9999 // note that Windows uses 100 nanosecond ticks for FILETIME
100- boost::detail:: winapi::FILETIME_ creation, exit, user_time, system_time;
100+ boost::winapi::FILETIME_ creation, exit, user_time, system_time;
101101
102- if ( boost::detail:: winapi::GetProcessTimes (
103- boost::detail:: winapi::GetCurrentProcess (), &creation, &exit,
102+ if ( boost::winapi::GetProcessTimes (
103+ boost::winapi::GetCurrentProcess (), &creation, &exit,
104104 &system_time, &user_time ) )
105105 {
106106 if (!::boost::chrono::is_throws (ec))
@@ -114,7 +114,7 @@ process_user_cpu_clock::time_point process_user_cpu_clock::now(
114114 }
115115 else
116116 {
117- boost::detail:: winapi::DWORD_ cause = boost::detail ::winapi::GetLastError ();
117+ boost::winapi::DWORD_ cause = boost::winapi::GetLastError ();
118118 if (::boost::chrono::is_throws (ec))
119119 {
120120 boost::throw_exception (
@@ -137,10 +137,10 @@ process_system_cpu_clock::time_point process_system_cpu_clock::now() BOOST_NOEXC
137137{
138138
139139 // note that Windows uses 100 nanosecond ticks for FILETIME
140- boost::detail:: winapi::FILETIME_ creation, exit, user_time, system_time;
140+ boost::winapi::FILETIME_ creation, exit, user_time, system_time;
141141
142- if ( boost::detail:: winapi::GetProcessTimes (
143- boost::detail:: winapi::GetCurrentProcess (), &creation, &exit,
142+ if ( boost::winapi::GetProcessTimes (
143+ boost::winapi::GetCurrentProcess (), &creation, &exit,
144144 &system_time, &user_time ) )
145145 {
146146 return time_point (duration (
@@ -162,10 +162,10 @@ process_system_cpu_clock::time_point process_system_cpu_clock::now(
162162{
163163
164164 // note that Windows uses 100 nanosecond ticks for FILETIME
165- boost::detail:: winapi::FILETIME_ creation, exit, user_time, system_time;
165+ boost::winapi::FILETIME_ creation, exit, user_time, system_time;
166166
167- if ( boost::detail:: winapi::GetProcessTimes (
168- boost::detail:: winapi::GetCurrentProcess (), &creation, &exit,
167+ if ( boost::winapi::GetProcessTimes (
168+ boost::winapi::GetCurrentProcess (), &creation, &exit,
169169 &system_time, &user_time ) )
170170 {
171171 if (!::boost::chrono::is_throws (ec))
@@ -179,7 +179,7 @@ process_system_cpu_clock::time_point process_system_cpu_clock::now(
179179 }
180180 else
181181 {
182- boost::detail:: winapi::DWORD_ cause = boost::detail ::winapi::GetLastError ();
182+ boost::winapi::DWORD_ cause = boost::winapi::GetLastError ();
183183 if (::boost::chrono::is_throws (ec))
184184 {
185185 boost::throw_exception (
@@ -202,10 +202,10 @@ process_cpu_clock::time_point process_cpu_clock::now() BOOST_NOEXCEPT
202202{
203203
204204 // note that Windows uses 100 nanosecond ticks for FILETIME
205- boost::detail:: winapi::FILETIME_ creation, exit, user_time, system_time;
205+ boost::winapi::FILETIME_ creation, exit, user_time, system_time;
206206
207- if ( boost::detail:: winapi::GetProcessTimes (
208- boost::detail:: winapi::GetCurrentProcess (), &creation, &exit,
207+ if ( boost::winapi::GetProcessTimes (
208+ boost::winapi::GetCurrentProcess (), &creation, &exit,
209209 &system_time, &user_time ) )
210210 {
211211 time_point::rep r (process_real_cpu_clock::now ().time_since_epoch ().count ()
@@ -233,10 +233,10 @@ process_cpu_clock::time_point process_cpu_clock::now(
233233{
234234
235235 // note that Windows uses 100 nanosecond ticks for FILETIME
236- boost::detail:: winapi::FILETIME_ creation, exit, user_time, system_time;
236+ boost::winapi::FILETIME_ creation, exit, user_time, system_time;
237237
238- if ( boost::detail:: winapi::GetProcessTimes (
239- boost::detail:: winapi::GetCurrentProcess (), &creation, &exit,
238+ if ( boost::winapi::GetProcessTimes (
239+ boost::winapi::GetCurrentProcess (), &creation, &exit,
240240 &system_time, &user_time ) )
241241 {
242242 if (!::boost::chrono::is_throws (ec))
@@ -256,7 +256,7 @@ process_cpu_clock::time_point process_cpu_clock::now(
256256 }
257257 else
258258 {
259- boost::detail:: winapi::DWORD_ cause = boost::detail ::winapi::GetLastError ();
259+ boost::winapi::DWORD_ cause = boost::winapi::GetLastError ();
260260 if (::boost::chrono::is_throws (ec))
261261 {
262262 boost::throw_exception (
0 commit comments