Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Time.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Engine/api.hpp"
4 #include <ThirdParty/EASTL-master/include/EASTL/vector.h>
5 
6 namespace Engine
7 {
12  {
13  friend class Engine;
14 
15  Time();
16  public:
17  ~Time() = default;
18 
23  float GetDeltaTime() const;
28  int GetMaxIterations() const;
33  eastl::vector<float> GetPreviousFramerates() const;
34  private:
35  float deltaTime;
36  eastl::vector<float> previousFramerates;
37  int iterations = -1;
38  int maxIterations = 100;
39 
40  friend class Engine;
41  static void OnUpdateBegin();
42  void OnUpdateEnd();
43  };
44 } //namespace Engine
#define ENGINE_API
Definition: api.hpp:25
This object is used to retrieve information regarding the time. NOTE: This object can only be created...
Definition: Time.hpp:11