Physics-Simulator  v1.4.0-beta.2
tick.h
Go to the documentation of this file.
1 #ifndef __MY_TICK_HEADER__
2 #define __MY_TICK_HEADER__
3 /*****************************************************************************/
4 #include <time.h>
5 #include <cmath>
6 /*****************************************************************************/
11 /*****************************************************************************/
12 class clsTick {
13  public:
14  clsTick();
15 
16  void startTimer(void);
17  double getTimeDifference(void);
18  void startHolding(void);
19  double stopHolding(void);
20 
21  private:
22 
23  clock_t lngTimerStart;
24  clock_t lngHoldingStart;
25 };
26 /*****************************************************************************/
27 #endif
double stopHolding(void)
Definition: tick.cpp:47
double getTimeDifference(void)
Definition: tick.cpp:28
clsTick()
Definition: tick.cpp:12
This class will hold functions related to time.
Definition: tick.h:12
void startHolding(void)
Definition: tick.cpp:40
void startTimer(void)
Definition: tick.cpp:20