Hummingbird Framework
 All Classes Functions Variables Modules Pages
Clock.h
1 #ifndef HB_CLOCK_H
2 #define HB_CLOCK_H
3 #include <chrono>
4 #include "Time.h"
5 
6 namespace hb
7 {
8  class Clock
9  {
10  public:
17  Clock();
23  ~Clock();
29  Time getElapsedTime() const;
47  Time reset();
48 
49  private:
50  std::chrono::high_resolution_clock::time_point m_time_point;
51  };
52 }
53 #endif
54 
Time reset()
Restarts the Time counter.
Clock()
Class constructor.
A class for measuring Time intervals.
Definition: Clock.h:8
~Clock()
Class destructor.
Definition: Box2DPlugin.h:6
Class for representing intervals of time.
Definition: Time.h:13
Time getElapsedTime() const
Returns the Time elapsed since creation or last reset.