Apache Log4cxx
Version 1.3.0
|
Simple transcoder for converting between external char and wchar_t strings and internal strings. More...
#include <date.h>
Public Types | |
typedef std::function< log4cxx_time_t()> | GetCurrentTimeFn |
A function that will return the current time(in microseconds) when called. | |
Public Member Functions | |
Date () | |
Date (log4cxx_time_t time) | |
virtual | ~Date () |
log4cxx_time_t | getTime () const |
log4cxx_time_t | getNextSecond () const |
Get start of next second. | |
Public Member Functions inherited from log4cxx::helpers::Object | |
virtual | ~Object () |
virtual const helpers::Class & | getClass () const =0 |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Static Public Member Functions | |
static log4cxx_time_t | getMicrosecondsPerDay () |
static log4cxx_time_t | getMicrosecondsPerSecond () |
static log4cxx_time_t | getCurrentTimeStd () |
static log4cxx_time_t | currentTime () |
static void | setGetCurrentTimeFunction (GetCurrentTimeFn fn) |
Set the function that is used to get the current time. | |
Simple transcoder for converting between external char and wchar_t strings and internal strings.
typedef std::function<log4cxx_time_t()> log4cxx::helpers::Date::GetCurrentTimeFn |
A function that will return the current time(in microseconds) when called.
log4cxx::helpers::Date::Date | ( | ) |
log4cxx::helpers::Date::Date | ( | log4cxx_time_t | time | ) |
|
virtual |
|
static |
|
static |
|
static |
|
static |
log4cxx_time_t log4cxx::helpers::Date::getNextSecond | ( | ) | const |
Get start of next second.
|
inline |
|
static |
Set the function that is used to get the current time.
This is used only for testing purposes and should never be called under normal circumstances.
fn |