Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
ITimer.hpp
Go to the documentation of this file.
1 //
2 // Created by Oleg Morozenkov on 31.05.17.
3 //
4 
5 #ifndef RECAST_ITIMER_H
6 #define RECAST_ITIMER_H
7 
8 
9 #include <chrono>
10 
15 class ITimer {
16 public:
17  virtual ~ITimer() noexcept = default;
18 
22  virtual std::chrono::milliseconds delta() const = 0;
23 
27  virtual double deltaFloatSeconds() const = 0;
28 
32  virtual bool isFirstUpdate() const = 0;
33 
37  virtual void update() = 0;
38 };
39 
40 
41 #endif //RECAST_ITIMER_H
virtual std::chrono::milliseconds delta() const =0
virtual ~ITimer() noexcept=default
virtual void update()=0
virtual bool isFirstUpdate() const =0
Definition: ITimer.hpp:15
virtual double deltaFloatSeconds() const =0