Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
utils
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-2016, 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
#ifndef CTICTAC_H
10
#define CTICTAC_H
11
12
#include <
mrpt/base/link_pragmas.h
>
13
#include <
mrpt/utils/CUncopiable.h
>
14
15
namespace
mrpt
16
{
17
namespace
utils
18
{
19
/** This class implements a high-performance stopwatch.
20
* Typical resolution is about 1e-6 seconds.
21
* \note The class is named after the Spanish equivalent of "Tic-Toc" ;-)
22
* \ingroup mrpt_base_grp
23
*/
24
class
BASE_IMPEXP
CTicTac
:
public
mrpt::utils::CUncopiable
25
{
26
private
:
27
unsigned
char
largeInts[64];
28
public
:
29
/** Default constructor. */
30
CTicTac
();
31
32
/** Destructor.
33
*/
34
virtual
~CTicTac
();
35
36
/** Starts the stopwatch
37
* \sa Tac
38
*/
39
void
Tic
();
40
41
/** Stops the stopwatch
42
* \return Returns the ellapsed time in seconds.
43
* \sa Tic
44
*/
45
double
Tac
();
46
47
};
// End of class def.
48
49
}
// End of namespace
50
}
// End of namespace
51
#endif
CUncopiable.h
link_pragmas.h
BASE_IMPEXP
#define BASE_IMPEXP
Definition:
base/include/mrpt/base/link_pragmas.h:90
mrpt::utils::CTicTac
This class implements a high-performance stopwatch.
Definition:
CTicTac.h:25
mrpt::utils::CTicTac::~CTicTac
virtual ~CTicTac()
Destructor.
mrpt::utils::CTicTac::Tac
double Tac()
Stops the stopwatch.
mrpt::utils::CTicTac::CTicTac
CTicTac()
Default constructor.
mrpt::utils::CTicTac::Tic
void Tic()
Starts the stopwatch.
mrpt::utils::CUncopiable
The base class of classes that cannot be copied: compile-time errors will be issued on any copy opera...
Definition:
CUncopiable.h:31
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:17
Page generated by
Doxygen 1.9.6
for MRPT 1.4.0 SVN: at Tue Jan 17 22:27:43 UTC 2023