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



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018