Main MRPT website > C++ reference for MRPT 1.5.6
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  */
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
This class implements a high-performance stopwatch.
Definition: CTicTac.h:24
The base class of classes that cannot be copied: compile-time errors will be issued on any copy opera...
Definition: CUncopiable.h:30
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019