iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::CentralTimer Class Reference

#include <nrt/Core/Typing/Time.H>

The NRT central timer (relative time since start() of the NRT Manager)

This timer is reset once at construction (which typically would be the first time it is used, since it is a singleton) and at each start() of the Manager. Hence, durations returned by get() are since start(), if your program has a manager, otherwise, since construction. Only the Manager can reset the CentralTimer, all others can only get the duration elapsed since last reset. To access the CentralTimer, use:

Definition at line 114 of file Time.H.

Inheritance diagram for nrt::CentralTimer:
nrt::Singleton< CentralTimer >

Public Member Functions

nrt::Time const & epoch () const
 
DurationSeconds get () const
 Return duration since start(), in seconds.
 

Friends

class Singleton< CentralTimer >
 
class Manager
 

Additional Inherited Members

- Static Public Member Functions inherited from nrt::Singleton< CentralTimer >
static CentralTimerinstance ()
 Get the global, unique instance of the class T. More...
 
- Protected Member Functions inherited from nrt::Singleton< CentralTimer >
 Singleton ()
 Only classes that inherit from Singleton can construct it via its protected default constructor.
 

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