Main MRPT website
>
C++ reference for MRPT 1.5.7
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-2017, 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
public
:
27
CTicTac
();
//!< Default constructor. Implicitly calls Tic()
28
void
Tic();
//!< Starts the stopwatch. \sa Tac
29
double
Tac();
//!< Stops the stopwatch. \return Returns the ellapsed time in seconds. \sa Tic
30
private
:
31
unsigned
long
long
largeInts[8];
32
};
// End of class def.
33
34
}
// End of namespace
35
}
// End of namespace
36
#endif
CUncopiable.h
link_pragmas.h
BASE_IMPEXP
#define BASE_IMPEXP
Definition:
base/include/mrpt/base/link_pragmas.h:41
mrpt::utils::CTicTac
This class implements a high-performance stopwatch.
Definition:
CTicTac.h:25
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.1
for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at mar 26 may 2026 13:12:03 CEST