CatapultServer
v0.5.0.1 (Elephant)
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
Functions
m
r
Variables
a
b
c
d
e
f
h
i
l
m
n
p
r
s
t
u
v
w
Macros
b
c
d
e
f
g
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
StackTimer.h
Go to the documentation of this file.
1
21
#pragma once
22
#include <chrono>
23
24
namespace
catapult
{
namespace
utils {
25
27
class
StackTimer
{
28
private
:
29
using
Clock
= std::chrono::steady_clock;
30
31
public
:
33
StackTimer
() :
m_start
(
Clock
::now())
34
{}
35
36
public
:
38
uint64_t
millis
()
const
{
39
auto
elapsedDuration = Clock::now() -
m_start
;
40
return
static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::milliseconds>(elapsedDuration).count());
41
}
42
43
private
:
44
Clock::time_point
m_start
;
45
};
46
}}
catapult::utils::StackTimer::m_start
Clock::time_point m_start
Definition:
StackTimer.h:44
catapult::utils::StackTimer::StackTimer
StackTimer()
Constructs a stack timer.
Definition:
StackTimer.h:33
catapult::utils::StackTimer
Stack based timer.
Definition:
StackTimer.h:27
catapult::utils::StackTimer::Clock
std::chrono::steady_clock Clock
Definition:
StackTimer.h:29
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::utils::StackTimer::millis
uint64_t millis() const
Gets the number of elapsed milliseconds since this logger was created.
Definition:
StackTimer.h:38
catapult-server
src
catapult
utils
StackTimer.h
Generated by
1.8.16