19 #include "../../../core/exception.hpp"
88 template <
typename Mdl_>
98 template <
typename Mdl_>
103 assert(Finish.QuadPart>=0i64);
107 template <
typename Mdl_>
111 assert(cur_ct>=start_up_count);
113 assert(usec_since_start>=0);
127 template <
typename Mdl_>
139 template <
typename Mdl_>
147 template <
typename Mdl_>
155 template <
typename T>
174 inline std::ostream &
__fastcall
175 operator<<(
std::ostream &ss,
const SYSTEMTIME &st) {
176 std::ios_base::iostate err=
std::ios_base::goodbit;
178 const std::ostream::sentry opfx(ss);
180 ss<<std::setiosflags(std::ios::right)
182 <<std::setw(2)<<st.wDay<<
"/"
183 <<std::setw(2)<<st.wMonth<<
"/"
184 <<std::setw(1)<<st.wYear
186 <<std::setw(2)<<st.wHour<<
":"
187 <<std::setw(2)<<st.wMinute<<
":"
188 <<std::setw(2)<<st.wSecond<<
"."
189 <<std::setw(3)<<st.wMilliseconds;
191 }
catch (
std::bad_alloc
const &) {
192 err|=
std::ios_base::badbit;
193 const std::ios_base::iostate exception_mask=ss.exceptions();
194 if ((exception_mask &
std::ios_base::failbit)
195 && !(exception_mask &
std::ios_base::badbit)) {
197 }
else if (exception_mask &
std::ios_base::badbit) {
200 }
catch (
std::ios_base::failure
const &) {
205 err|=
std::ios_base::failbit;
206 const std::ios_base::iostate exception_mask=ss.exceptions();
207 if ((exception_mask &
std::ios_base::badbit)
208 && (err &
std::ios_base::badbit)) {
210 }
else if (exception_mask &
std::ios_base::failbit) {
213 }
catch (
std::ios_base::failure
const &) {
218 if (err) ss.setstate(err);
222 template <
typename Mdl_>
223 inline std::ostream &
__fastcall
224 operator<<(
std::ostream &o,
const typename jmmcg::
LIBJMMCG_VER_NAMESPACE::hp_timer<ppd::generic_traits::MS_Win32,Mdl_>::time_utc_t &t) {
226 if (::FileTimeToSystemTime(&t,&st)) {