jubilant-funicular
Timer.h
1 #ifndef TIMER_H_INCLUDED
2 #define TIMER_H_INCLUDED
3 
4 #include <chrono>
5 
6 namespace nta {
8  class Timer {
9  protected:
10  std::chrono::time_point<std::chrono::high_resolution_clock, std::chrono::nanoseconds> m_startPoint;
11  public:
13  Timer();
14  virtual ~Timer();
16  virtual void begin();
18  virtual long double end() const;
19  };
20 }
21 
22 #endif // TIMER_H_INCLUDED
nta::Timer::Timer
Timer()
constructor and destructor
Definition: Timer.cpp:4
nta::Timer::end
virtual long double end() const
return time since beginning of timer in nanoseconds
Definition: Timer.cpp:11
nta::Timer
represents a timer
Definition: Timer.h:8
nta
Definition: Animation2D.h:6
nta::Timer::begin
virtual void begin()
begins timer
Definition: Timer.cpp:8