13 #include <boost/chrono.hpp>
19 typedef boost::chrono::duration<int64_t, boost::nano>
Duration;
20 typedef boost::chrono::duration<int64_t, boost::nano>
NanoSeconds;
21 typedef boost::chrono::duration<int64_t, boost::micro>
MicroSeconds;
22 typedef boost::chrono::duration<int64_t, boost::milli>
MilliSeconds;
23 typedef boost::chrono::duration<int64_t>
Seconds;
24 typedef boost::chrono::duration<int64_t, boost::ratio<60> >
Minutes;
25 typedef boost::chrono::duration<int64_t, boost::ratio<3600> >
Hours;
33 typedef boost::chrono::duration<rep, period>
duration;
34 typedef boost::chrono::time_point<SteadyClock>
time_point;
35 BOOST_STATIC_CONSTEXPR
bool is_steady = boost::chrono::steady_clock::is_steady;
77 Expect expect=Expect_SoonerOrLater) throw();
79 Expect expect=Expect_SoonerOrLater) throw();
87 typedef boost::chrono::duration<rep, period>
duration;
89 BOOST_STATIC_CONSTEXPR
bool is_steady =
false;
95 static WallClockTimePoint now();
98 static std::time_t to_time_t(
const WallClockTimePoint& t)
throw();
101 static WallClockTimePoint from_time_t(
const std::time_t &t)
throw();
120 template <
class Rep,
class Period>
121 inline void sleepFor(
const boost::chrono::duration<Rep, Period>& d);
128 template <
class Duration>
129 inline void sleepUntil(
const boost::chrono::time_point<SteadyClock, Duration>& t);
137 template <
class Duration>
138 inline void sleepUntil(
const boost::chrono::time_point<WallClock, Duration>& t);
144 template class QI_API boost::chrono::duration<int64_t, boost::nano>;
145 template class QI_API boost::chrono::duration<int64_t, boost::micro>;
146 template class QI_API boost::chrono::duration<int64_t, boost::milli>;
147 template class QI_API boost::chrono::duration<int64_t>;
148 template class QI_API boost::chrono::duration<int64_t, boost::ratio<60> >;
149 template class QI_API boost::chrono::duration<int64_t, boost::ratio<3600> >;
150 template class QI_API boost::chrono::time_point<qi::SteadyClock>;
151 template class QI_API boost::chrono::time_point<qi::WallClock>;
156 #endif // _QI_OS_HPP_
int32_t int32_t
Cross-platform signed integer of length 32 bits (4 bytes).
WallClockTimePoint wallClockNow()
boost::chrono::duration< int64_t, boost::nano > Duration
boost::chrono::duration< rep, period > duration
boost::chrono::time_point< SteadyClock > SteadyClockTimePoint
boost::chrono::duration< int64_t, boost::micro > MicroSeconds
boost::chrono::duration< int64_t, boost::ratio< 60 > > Minutes
WallClock::WallClockTimePoint WallClockTimePoint
void sleepUntil(const SteadyClockTimePoint &t)
boost::chrono::time_point< WallClock > time_point
int64_t int64_t
Cross-platform signed integer of length 64 bits (8 bytes).
SteadyClockTimePoint steadyClockNow()
boost::chrono::duration< int64_t, boost::nano > NanoSeconds
boost::chrono::duration< rep, period > duration
boost::chrono::time_point< WallClock > WallClockTimePoint
void sleepFor(const qi::Duration &d)
static WallClockTimePoint now()
boost::chrono::time_point< SteadyClock > time_point
dll import/export and compiler message
uint32_t uint32_t
Cross-platform unsigned integer of length 32 bits (4 bytes).
static SteadyClockTimePoint now()
boost::chrono::duration< int64_t > Seconds
boost::chrono::duration< int64_t, boost::milli > MilliSeconds
SteadyClock::SteadyClockTimePoint SteadyClockTimePoint
boost::chrono::duration< int64_t, boost::ratio< 3600 > > Hours