Main MRPT website > C++ reference for MRPT 1.4.0
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  */
25  {
26  private:
27  unsigned char largeInts[64];
28  public:
29  /** Default constructor. */
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
This class implements a high-performance stopwatch.
Definition: CTicTac.h:25
virtual ~CTicTac()
Destructor.
double Tac()
Stops the stopwatch.
CTicTac()
Default constructor.
void Tic()
Starts the stopwatch.
The base class of classes that cannot be copied: compile-time errors will be issued on any copy opera...
Definition: CUncopiable.h:31
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.



Page generated by Doxygen 1.9.1 for MRPT 1.4.0 SVN: at Sat Jan 30 21:34:41 UTC 2021