- Aldebaran documentation |
- C++ Libraries |
- index

libqi-api 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Typedefs | Functions | Variables
clock.hpp File Reference
`#include <qi/api.hpp>`
`#include <qi/types.hpp>`
`#include <boost/chrono/chrono.hpp>`
`#include <qi/detail/clock.hxx>`

Go to the source code of this file.

## Classes
class | qi::SteadyClock
| The SteadyClock class represents a monotonic clock. . More...
class | qi::Clock
| The Clock class represents a system-wide clock, best suitable for timestamping events. Typically monotonic and unaffected by the system clock adjustment, altough this is not guaranteed. More...
class | qi::SystemClock
| The SystemClock class represents the system-wide real time wall clock. It may not be monotonic: on most systems, the system time can be adjusted at any moment. More...

## Namespaces
| qi
| Deprecated in 2.5. Use int8_t from <cstdint>.

## Macros
#define | _QI_CLOCK_HPP_

## Typedefs
template<class Rep , class Ratio >
using | qi::DurationType = boost::chrono::duration< Rep, Ratio >
| Convenience typedefs. More...
template<class ClockType >
using | qi::TimePoint = boost::chrono::time_point< ClockType >
using | qi::NanoSeconds = DurationType< int64_t, boost::nano >
using | qi::MicroSeconds = DurationType< int64_t, boost::micro >
using | qi::MilliSeconds = DurationType< int64_t, boost::milli >
using | qi::Seconds = DurationType< int64_t, boost::ratio< 1 >>
using | qi::Minutes = DurationType< int64_t, boost::ratio< 60 >>
using | qi::Hours = DurationType< int64_t, boost::ratio< 3600 >>
using | qi::Duration = NanoSeconds
using | qi::SteadyClockTimePoint = SteadyClock::time_point
| Steady clock time point. More...
using | qi::ClockTimePoint = Clock::time_point
| qi::Clock time point. More...
using | qi::SystemClockTimePoint = SystemClock::time_point
| System clock time point. More...

## Functions
QI_API_DEPRECATED SteadyClockTimePoint | qi::steadyClockNow ()
| Returns a time_point representing the current value of the clock. More...
QI_API_DEPRECATED SystemClockTimePoint | qi::wallClockNow ()
| Returns a time_point representing the current value of the clock. More...
template<class R , class P >
std::string | qi::to_string (const DurationType< R, P > &d)
template<class C , class D >
std::string | qi::to_string (const boost::chrono::time_point< C, D > &t)
void | qi::sleepFor (const qi::Duration &d)
template<class Rep , class Period >
void | qi::sleepFor (const DurationType< Rep, Period > &d)
void | qi::sleepUntil (const SteadyClockTimePoint &t)
| Blocks the execution of the current thread until `t` has been reached. More...
template<class Duration >
void | qi::sleepUntil (const boost::chrono::time_point< SteadyClock, Duration > &t)
void | qi::sleepUntil (const ClockTimePoint &t)
| Blocks the execution of the current thread until `t` has been reached. More...
template<class Duration >
void | qi::sleepUntil (const boost::chrono::time_point< Clock, Duration > &t)
void | qi::sleepUntil (const SystemClockTimePoint &t)
| Blocks the execution of the current thread until `t` has been reached. More...
template<class Duration >
void | qi::sleepUntil (const boost::chrono::time_point< SystemClock, Duration > &t)
std::string | qi::toISO8601String (const SystemClockTimePoint &t)
| Return the date and time as a string in ISO 8601 format. The time is given up to millisecond precision, in UTC. The format does not include colon characters, to be suitable for inclusion in filenames on any filesystem. More...
template<class DurationTo , class TimePointFrom >
DurationTo | qi::durationSince (const TimePointFrom &t)
| }@ More...

## Variables
QI_API_DEPRECATED typedef SystemClock | qi::WallClock
QI_API_DEPRECATED typedef SystemClockTimePoint | qi::WallClockTimePoint
| System clock time point. More...

## Macro Definition Documentation

#define _QI_CLOCK_HPP_

Definition at line 9 of file clock.hpp.