log4tango  4.0.3
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
log4tango::TimeStamp Class Reference

#include <TimeStamp.hh>

List of all members.

Public Member Functions

 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 Public Member Functions

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

Protected Attributes

int _seconds
int _micro_seconds

Static Protected Attributes

static TimeStamp _start_stamp

Constructor & Destructor Documentation

Constructs a TimeStamp representing 'now'.

log4tango::TimeStamp::TimeStamp ( const TimeStamp t) [inline]

Copy Constructor.

log4tango::TimeStamp::TimeStamp ( unsigned int  seconds,
unsigned int  microseconds = 0 
) [inline]

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


Member Function Documentation

int log4tango::TimeStamp::get_microseconds ( void  ) const [inline]

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.

int log4tango::TimeStamp::get_milliseconds ( void  ) const [inline]

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

int log4tango::TimeStamp::get_seconds ( void  ) const [inline]

Returns the 'seconds' part of the TimeStamp.

static const TimeStamp& log4tango::TimeStamp::get_start_time ( void  ) [inline, static]

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

void log4tango::TimeStamp::operator= ( const TimeStamp t) [inline]

Operator=.


Member Data Documentation


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