Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
TimeStamp.hh
Go to the documentation of this file.
1
/*
2
* TimeStamp.hh
3
*
4
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2001, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_TIMESTAMP_HH
11
#define _LOG4CPP_TIMESTAMP_HH
12
13
#include <
log4cpp/Portability.hh
>
14
15
namespace
log4cpp
{
16
20
class
LOG4CPP_EXPORT
TimeStamp
{
21
public
:
25
TimeStamp
();
26
31
TimeStamp
(
unsigned
int
seconds,
unsigned
int
microSeconds = 0);
32
36
inline
int
getSeconds
()
const
{
37
return
_seconds;
38
};
39
44
inline
int
getMilliSeconds
()
const
{
45
return
_microSeconds / 1000;
46
};
47
53
inline
int
getMicroSeconds
()
const
{
54
return
_microSeconds;
55
};
56
61
static
inline
const
TimeStamp
&
getStartTime
() {
62
return
_startStamp;
63
};
64
65
protected
:
66
static
TimeStamp
_startStamp
;
67
68
int
_seconds
;
69
int
_microSeconds
;
70
};
71
}
72
73
#endif // _LOG4CPP_TIMESTAMP_HH
74
log4cpp::TimeStamp::getMicroSeconds
int getMicroSeconds() const
Definition:
TimeStamp.hh:53
log4cpp::TimeStamp::_microSeconds
int _microSeconds
Definition:
TimeStamp.hh:69
log4cpp::TimeStamp::getMilliSeconds
int getMilliSeconds() const
Definition:
TimeStamp.hh:44
log4cpp::TimeStamp::_startStamp
static TimeStamp _startStamp
Definition:
TimeStamp.hh:63
Portability.hh
log4cpp::TimeStamp::getStartTime
static const TimeStamp & getStartTime()
Definition:
TimeStamp.hh:61
log4cpp::TimeStamp::getSeconds
int getSeconds() const
Definition:
TimeStamp.hh:36
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::TimeStamp::_seconds
int _seconds
Definition:
TimeStamp.hh:68
log4cpp::TimeStamp
Definition:
TimeStamp.hh:20
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00