gatb.core-API-1.4.2
TimeSystem Class Reference

Implementation of ITime interface. More...

#include <TimeCommon.hpp>

Inheritance diagram for TimeSystem:
Inheritance graph

Public Member Functions

 TimeSystem (Unit unit)
 
Value getTimeStamp ()
 
- Public Member Functions inherited from TimeAbstract
 TimeAbstract (Unit unit)
 
Unit getUnit ()
 
std::string getDateString ()
 
- Public Member Functions inherited from ITime
virtual ~ITime ()
 

Additional Inherited Members

- Public Types inherited from ITime
typedef u_int64_t Value
 

Detailed Description

Implementation of ITime interface.

This class inherits from TimeAbstract class and add the getTimeStamp() method by using the system gettimeofday function.

Constructor & Destructor Documentation

TimeSystem ( Unit  unit)
inline

Constructor.

Parameters
[in]unit: unit used for this instance

Member Function Documentation

Value getTimeStamp ( )
inlinevirtual

Returns a time stamp, ie the number of time atoms (depending on chosen time unit) since some define T0 time. Such a starting time can be the 01.01.1970 for instance, or the beginning of the process. It implies that clients should be interested not in the absolute value returned by the method but by the distance between two such values.

Returns
elapsed time atoms number.

Implements ITime.


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