libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | Public Attributes | List of all members
qi::SteadyClock Class Reference

The SteadyClock class represents a monotonic clock. . More...

#include <clock.hpp>

Public Types

enum  Expect { Expect_SoonerOrLater, Expect_Later, Expect_Sooner }
 Enum expected argument. More...
 
typedef int64_t rep
 The representation type of the duration and time_point. More...
 
typedef boost::nano period
 The tick period of the clock in nanoseconds. More...
 
typedef
boost::chrono::duration< rep,
period > 
duration
 The duration type of the clock. More...
 
typedef
boost::chrono::time_point
< SteadyClock > 
time_point
 

Static Public Member Functions

static time_point now ()
 Returns a time_point representing the current value of the clock. More...
 

Public Attributes

QI_API_DEPRECATED typedef
time_point 
SteadyClockTimePoint
 
bool is_steady = boost::chrono::steady_clock::is_steady
 

Detailed Description

The SteadyClock class represents a monotonic clock. .

The time points of this clock cannot decrease as physical time moves forward. This clock is not related to wall clock time, and is best suitable for measuring intervals.

Definition at line 34 of file clock.hpp.

Member Typedef Documentation

typedef boost::chrono::duration<rep, period> qi::SteadyClock::duration

The duration type of the clock.

Definition at line 39 of file clock.hpp.

typedef boost::nano qi::SteadyClock::period

The tick period of the clock in nanoseconds.

Definition at line 38 of file clock.hpp.

The representation type of the duration and time_point.

Definition at line 37 of file clock.hpp.

typedef boost::chrono::time_point<SteadyClock> qi::SteadyClock::time_point

The time_point type of the clock. Different clocks are permitted to share a time_point definition if it is valid to compare their time_points by comparing their respective durations.

Definition at line 45 of file clock.hpp.

Member Enumeration Documentation

Enum expected argument.

Enumerator
Expect_SoonerOrLater 

Pick the nearest result to user-provided reference.

Expect_Later 

Result is expected to be later than user-provided reference.

Expect_Sooner 

Result is expected to be sooner than user-provided reference.

Definition at line 58 of file clock.hpp.

Member Function Documentation

static time_point qi::SteadyClock::now ( )
static

Returns a time_point representing the current value of the clock.

Member Data Documentation

bool qi::SteadyClock::is_steady = boost::chrono::steady_clock::is_steady

true if t1 <= t2 is always true, else false.

Note
A clock that can be adjusted backwards is not steady.

Definition at line 51 of file clock.hpp.

QI_API_DEPRECATED typedef time_point qi::SteadyClock::SteadyClockTimePoint

Definition at line 55 of file clock.hpp.


The documentation for this class was generated from the following file: