Go to the documentation of this file.
28 #ifndef _LOG4TANGO_TIMESTAMP_H
29 #define _LOG4TANGO_TIMESTAMP_H
50 : _seconds(t._seconds), _micro_seconds(t._micro_seconds)
59 inline TimeStamp(
unsigned int seconds,
unsigned int microseconds = 0)
60 : _seconds(seconds), _micro_seconds(microseconds)
77 return _micro_seconds / 1000;
86 return _micro_seconds;
113 #endif // _LOG4TANGO_TIMESTAMP_H
int get_microseconds(void) const
Returns the subsecond part of the TimeStamp in microseconds.
Definition: TimeStamp.hh:85
Definition: TimeStamp.hh:38
int _seconds
Definition: TimeStamp.hh:107
TimeStamp(unsigned int seconds, unsigned int microseconds=0)
Constructs a TimeStamp representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC).
Definition: TimeStamp.hh:59
static const TimeStamp & get_start_time(void)
Returns a TimeStamp representing the time at which the application started.
Definition: TimeStamp.hh:93
TimeStamp(const TimeStamp &t)
Copy Constructor.
Definition: TimeStamp.hh:49
int get_milliseconds(void) const
Returns the 'subseconds' part of the TimeStamp in milliseconds, get_milliseconds() == get_microsecond...
Definition: TimeStamp.hh:76
Definition: Appender.hh:40
#define LOG4TANGO_EXPORT
Definition: Export.hh:38
int get_seconds(void) const
Returns the 'seconds' part of the TimeStamp.
Definition: TimeStamp.hh:68
int _micro_seconds
Definition: TimeStamp.hh:108