Main Page
+
Namespaces
Namespace List
+
Namespace 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
x
y
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
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
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
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
+
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
x
y
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
_
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
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
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
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
L1Trigger
TrackFindingTracklet
interface
Timer.h
Go to the documentation of this file.
1
#ifndef L1Trigger_TrackFindingTracklet_interface_Timer_h
2
#define L1Trigger_TrackFindingTracklet_interface_Timer_h
3
4
#include <cmath>
5
#include <chrono>
6
7
namespace
trklet
{
8
9
class
Timer
{
10
public
:
11
Timer
() {}
12
13
~Timer
() =
default
;
14
15
void
start
();
16
void
stop
();
17
unsigned
int
ntimes
()
const
{
return
ntimes_
; }
18
double
avgtime
()
const
{
return
ttot_
/
ntimes_
; }
19
double
rms
()
const
{
return
sqrt
((
ttot_
*
ttot_
-
ttotsq_
)) /
ntimes_
; }
20
double
tottime
()
const
{
return
ttot_
; }
21
22
private
:
23
unsigned
int
ntimes_
{0};
24
double
ttot_
{0.0};
25
double
ttotsq_
{0.0};
26
27
std::chrono::high_resolution_clock::time_point
tstart_
;
28
};
29
};
// namespace trklet
30
#endif
trklet::Timer::ntimes
unsigned int ntimes() const
Definition:
Timer.h:17
trklet::Timer::start
void start()
Definition:
Timer.cc:5
trklet::Timer::Timer
Timer()
Definition:
Timer.h:11
trklet::Timer::tottime
double tottime() const
Definition:
Timer.h:20
trklet::Timer
Definition:
Timer.h:9
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
trklet::Timer::rms
double rms() const
Definition:
Timer.h:19
trklet::Timer::ttotsq_
double ttotsq_
Definition:
Timer.h:25
trklet::Timer::avgtime
double avgtime() const
Definition:
Timer.h:18
trklet::Timer::ttot_
double ttot_
Definition:
Timer.h:24
trklet::Timer::stop
void stop()
Definition:
Timer.cc:6
trklet
Definition:
AllInnerStubsMemory.h:10
trklet::Timer::ntimes_
unsigned int ntimes_
Definition:
Timer.h:23
trklet::Timer::tstart_
std::chrono::high_resolution_clock::time_point tstart_
Definition:
Timer.h:27
trklet::Timer::~Timer
~Timer()=default
Generated for CMSSW Reference Manual by
1.8.14