Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
i
l
m
n
u
v
Typedefs
a
c
d
e
g
i
m
n
o
p
s
u
v
Enumerations
_
e
g
h
i
p
Enumerator
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
x
y
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
a
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
v
Enumerations
Enumerator
a
c
d
e
f
i
n
o
r
s
t
w
x
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
y
Functions
c
d
e
g
i
l
m
o
p
r
t
Variables
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
p
s
t
u
Enumerations
a
b
c
d
e
f
g
i
p
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
y
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
LOG4CPP_NS_BEGIN
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
LOG4CPP_NS_END
72
73
#endif // _LOG4CPP_TIMESTAMP_HH
74
Portability.hh
TimeStamp::getSeconds
int getSeconds() const
Returns the 'seconds' part of the TimeStamp.
Definition:
TimeStamp.hh:36
TimeStamp::getMicroSeconds
int getMicroSeconds() const
Returns the subsecond part of the TimeStamp in microseconds.
Definition:
TimeStamp.hh:53
TimeStamp
A simple TimeStamp abstraction.
Definition:
TimeStamp.hh:20
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition:
Portability.hh:49
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition:
Portability.hh:50
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:21
TimeStamp::getMilliSeconds
int getMilliSeconds() const
Returns the 'subseconds' part of the TimeStamp in milliseconds, getMilliSeconds() == getMicroSeconds(...
Definition:
TimeStamp.hh:44
TimeStamp::_microSeconds
int _microSeconds
Definition:
TimeStamp.hh:69
TimeStamp::_seconds
int _seconds
Definition:
TimeStamp.hh:68
TimeStamp::getStartTime
static const TimeStamp & getStartTime()
Returns a TimeStamp representing the time at which the application started.
Definition:
TimeStamp.hh:61
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:12