MRPT
1.9.9
Main Page
Related Pages
Modules
+
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
g
h
i
l
m
n
p
r
s
t
u
v
w
+
Typedefs
_
a
c
f
m
o
p
r
s
t
v
+
Enumerations
e
f
g
m
n
p
s
t
v
+
Enumerator
a
b
c
d
e
f
i
k
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
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
a
f
j
l
m
p
r
s
t
v
x
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
y
+
Related Functions
c
d
g
m
o
p
t
w
x
+
Files
File List
+
File 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
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
c
d
f
i
j
s
t
x
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
x
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
system/CTicTac.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#pragma once
10
11
namespace
mrpt::system
12
{
13
/** A high-performance stopwatch, with typical resolution of nanoseconds.
14
* \note The class is named after the Spanish equivalent of "Tic-Toc" ;-)
15
* \ingroup mrpt_system_grp
16
*/
17
class
CTicTac
18
{
19
public
:
20
/** Default constructor. Implicitly calls Tic() */
21
CTicTac
() noexcept;
22
CTicTac
(
const
CTicTac
&) =
delete
;
23
CTicTac
&
operator=
(
const
CTicTac
&) =
delete
;
24
/** Starts the stopwatch. \sa Tac() */
25
void
Tic
() noexcept;
26
/** Stops the stopwatch. \return Returns the ellapsed time in seconds.
27
* \sa Tic() */
28
double
Tac
() noexcept;
29
30
private
:
31
alignas
(16)
unsigned
long
largeInts
[4];
32
};
// End of class def.
33
34
}
35
mrpt::system::CTicTac::Tac
double Tac() noexcept
Stops the stopwatch.
Definition:
CTicTac.cpp:90
mrpt::system
Definition:
math_frwds.h:25
mrpt::system::CTicTac
A high-performance stopwatch, with typical resolution of nanoseconds.
Definition:
system/CTicTac.h:17
mrpt::system::CTicTac::CTicTac
CTicTac() noexcept
Default constructor.
Definition:
CTicTac.cpp:63
mrpt::system::CTicTac::Tic
void Tic() noexcept
Starts the stopwatch.
Definition:
CTicTac.cpp:79
mrpt::system::CTicTac::operator=
CTicTac & operator=(const CTicTac &)=delete
mrpt::system::CTicTac::largeInts
unsigned long largeInts[4]
Definition:
system/CTicTac.h:31
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020