iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Time measurement definitions and classes

The NRT Time definitions wrap commonly used std::chrono types and provide a simple Timer class

Classes

class  nrt::Timer
 A simple timer class. More...
 
class  nrt::CentralTimer
 The NRT central timer (relative time since start() of the NRT Manager) More...
 

Typedefs

typedef
std::chrono::high_resolution_clock 
nrt::Clock
 The standard clock used by NRT (high-resolution clock from std::chrono) More...
 
typedef nrt::Clock::time_point nrt::Time
 Typedef for the NRT standard time point. More...
 
typedef nrt::Clock::duration nrt::Duration
 Standard NRT duration. More...
 
typedef std::chrono::duration
< double > 
nrt::DurationSeconds
 Duration in seconds. More...
 

Functions

Time nrt::now ()
 Now represented in nrt::Time. More...
 
Duration nrt::forev ()
 Forever duration. More...
 
Duration nrt::zeroduration ()
 Zero duration. More...
 

Typedef Documentation

typedef std::chrono::high_resolution_clock nrt::Clock

The standard clock used by NRT (high-resolution clock from std::chrono)

Definition at line 52 of file Time.H.

typedef nrt::Clock::time_point nrt::Time

Typedef for the NRT standard time point.

Definition at line 56 of file Time.H.

typedef nrt::Clock::duration nrt::Duration

Standard NRT duration.

Definition at line 60 of file Time.H.

typedef std::chrono::duration<double> nrt::DurationSeconds

Duration in seconds.

Definition at line 64 of file Time.H.

Function Documentation

nrt::Duration nrt::forev ( )
inline

Forever duration.

Note that this is not exactly forever, but lots and lots of hours...

Definition at line 41 of file TimeImpl.H.

Referenced by main().

nrt::Duration nrt::zeroduration ( )
inline

Zero duration.

Definition at line 44 of file TimeImpl.H.