gatb.core-API-0.0.0
|
Implementation of ITime interface. More...
#include <TimeCommon.hpp>
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 |
Implementation of ITime interface.
This class inherits from TimeAbstract class and add the getTimeStamp() method by using the system gettimeofday function.
|
inline |
Constructor.
[in] | unit | : unit used for this instance |
|
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.
Implements ITime.