KrisLibrary  1.0.0
Timer.h
1 #ifndef MY_TIMER_H
2 #define MY_TIMER_H
3 
4 struct TimerImpl;
5 
6 class Timer
7 {
8  public:
9  Timer();
10  Timer(const Timer& rhs);
11  ~Timer();
12  const Timer& operator = (const Timer&);
13  void Reset();
14 
15  // Returns elapsed time in milliseconds,seconds respectively
16  long long ElapsedTicks();
17  double ElapsedTime();
18 
19  // Doesn't refresh the current time
20  long long LastElapsedTicks() const;
21  double LastElapsedTime() const;
22 
23  private:
24  TimerImpl* impl;
25 };
26 
27 #endif
Definition: Timer.cpp:16
Definition: Timer.h:6