DOKK / manpages / debian 12 / liblog4tango-doc / log4tango::TimeStamp.3.en
log4tango::TimeStamp(3) log4tango log4tango::TimeStamp(3)

log4tango::TimeStamp

#include <TimeStamp.hh>


TimeStamp ()
Constructs a TimeStamp representing 'now'. TimeStamp (const TimeStamp &t)
Copy Constructor. 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). int get_seconds (void) const
Returns the 'seconds' part of the TimeStamp. int get_milliseconds (void) const
Returns the 'subseconds' part of the TimeStamp in milliseconds, get_milliseconds() == get_microseconds() / 1000. int get_microseconds (void) const
Returns the subsecond part of the TimeStamp in microseconds. void operator= (const TimeStamp &t)
Operator=.


static const TimeStamp & get_start_time (void)
Returns a TimeStamp representing the time at which the application started.


int _seconds
int _micro_seconds


static TimeStamp _start_stamp

Constructs a TimeStamp representing 'now'.

Copy Constructor.

Constructs a TimeStamp representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC).

Returns the subsecond part of the TimeStamp in microseconds. The actual precision of this value depends on the platform and may be in the order of milliseconds rather than microseconds.

Returns the 'subseconds' part of the TimeStamp in milliseconds, get_milliseconds() == get_microseconds() / 1000.

Returns the 'seconds' part of the TimeStamp.

Returns a TimeStamp representing the time at which the application started.

Operator=.

TimeStamp log4tango::TimeStamp::_start_stamp [static], [protected]

Generated automatically by Doxygen for log4tango from the source code.

Fri Nov 11 2022 Version 5.0.2