TTK
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
z
Functions
a
c
d
f
g
i
l
m
o
p
r
s
t
u
v
z
Variables
b
c
d
e
f
g
i
l
m
o
p
r
s
u
v
w
y
Typedefs
b
c
d
e
g
i
l
m
n
o
p
r
s
t
u
v
Enumerations
Enumerator
a
b
c
f
g
h
j
l
m
n
o
p
s
v
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
z
~
Variables
_
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
Typedefs
c
e
g
i
k
n
p
q
r
s
t
v
w
Enumerations
b
c
d
e
f
m
p
r
s
t
v
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
Macros
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
core
base
common
Timer.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <chrono>
4
5
namespace
ttk
{
6
7
class
Timer
{
8
using
ClockType = std::chrono::steady_clock;
9
using
TimeType = std::chrono::time_point<ClockType>;
10
using
DiffType = std::chrono::duration<double>;
11
12
public
:
13
Timer
() =
default
;
14
15
inline
double
getElapsedTime
() {
16
const
auto
end
= this->
getTimeStamp
();
17
const
DiffType diff =
end
-
start_
;
18
return
diff.count();
19
}
15
inline
double
getElapsedTime
() {
…
}
20
21
inline
void
reStart
() {
22
start_
= this->
getTimeStamp
();
23
}
21
inline
void
reStart
() {
…
}
24
25
protected
:
26
inline
TimeType
getTimeStamp
() {
27
return
ClockType::now();
28
}
26
inline
TimeType
getTimeStamp
() {
…
}
29
30
TimeType
start_
{this->
getTimeStamp
()};
31
};
7
class
Timer
{
…
};
32
33
}
// namespace ttk
ttk::Timer
Definition
Timer.h:7
ttk::Timer::getTimeStamp
TimeType getTimeStamp()
Definition
Timer.h:26
ttk::Timer::start_
TimeType start_
Definition
Timer.h:30
ttk::Timer::reStart
void reStart()
Definition
Timer.h:21
ttk::Timer::Timer
Timer()=default
ttk::Timer::getElapsedTime
double getElapsedTime()
Definition
Timer.h:15
ttk
The Topology ToolKit.
Definition
AbstractTriangulation.h:51
end
T end(std::pair< T, T > &p)
Definition
ripserpy.cpp:483
Generated on Thu Sep 26 2024 06:50:17 for TTK by
1.9.8