log4cpp::TimeStamp Class Reference

#include <TimeStamp.hh>

List of all members.

Public Member Functions

int getMicroSeconds () const
int getMicroSeconds () const
int getMilliSeconds () const
int getMilliSeconds () const
int getSeconds () const
int getSeconds () const
 TimeStamp (unsigned int seconds, unsigned int microSeconds=0)
 TimeStamp ()
 TimeStamp (unsigned int seconds, unsigned int microSeconds=0)
 TimeStamp ()

Static Public Member Functions

static const TimeStampgetStartTime ()
static const TimeStampgetStartTime ()

Protected Attributes

int _microSeconds
int _seconds

Static Protected Attributes

static TimeStamp _startStamp

Detailed Description

A simple TimeStamp abstraction

Definition at line 20 of file include/log4cpp/TimeStamp.hh.


Constructor & Destructor Documentation

log4cpp::TimeStamp::TimeStamp (  ) 

Constructs a TimeStamp representing 'now'.

Definition at line 28 of file TimeStamp.cpp.

log4cpp::TimeStamp::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 at line 47 of file TimeStamp.cpp.

log4cpp::TimeStamp::TimeStamp (  ) 

Constructs a TimeStamp representing 'now'.

log4cpp::TimeStamp::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).


Member Function Documentation

int log4cpp::TimeStamp::getMicroSeconds (  )  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.

Definition at line 53 of file install/include/log4cpp/TimeStamp.hh.

int log4cpp::TimeStamp::getMicroSeconds (  )  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.

Definition at line 53 of file include/log4cpp/TimeStamp.hh.

int log4cpp::TimeStamp::getMilliSeconds (  )  const [inline]

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

Definition at line 44 of file install/include/log4cpp/TimeStamp.hh.

int log4cpp::TimeStamp::getMilliSeconds (  )  const [inline]

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

Definition at line 44 of file include/log4cpp/TimeStamp.hh.

int log4cpp::TimeStamp::getSeconds (  )  const [inline]

Returns the 'seconds' part of the TimeStamp.

Definition at line 36 of file install/include/log4cpp/TimeStamp.hh.

int log4cpp::TimeStamp::getSeconds (  )  const [inline]

Returns the 'seconds' part of the TimeStamp.

Definition at line 36 of file include/log4cpp/TimeStamp.hh.

static const TimeStamp& log4cpp::TimeStamp::getStartTime (  )  [inline, static]

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

Definition at line 61 of file install/include/log4cpp/TimeStamp.hh.

static const TimeStamp& log4cpp::TimeStamp::getStartTime (  )  [inline, static]

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

Definition at line 61 of file include/log4cpp/TimeStamp.hh.


Member Data Documentation

Definition at line 69 of file include/log4cpp/TimeStamp.hh.

Definition at line 68 of file include/log4cpp/TimeStamp.hh.

LOG4CPP_EXPORT TimeStamp log4cpp::TimeStamp::_startStamp [static, protected]

Definition at line 63 of file include/log4cpp/TimeStamp.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Jan 11 09:51:56 2013