Simple SFML GUI  0.2a
GlobalTimer.hpp
1 /*
2  * GlobalTimer.hpp
3  *
4  * Created on: 17.06.2017
5  * Author: jakub
6  */
7 
8 #ifndef INCLUDE_SSG_GLOBALTIMER_HPP_
9 #define INCLUDE_SSG_GLOBALTIMER_HPP_
10 
11 #include <SFML/Graphics.hpp>
12 
13 class Element;
14 
15 class GlobalTimer {
16 public:
17  friend Element;
18  static const sf::Clock& dclock;
19  static const sf::Clock& rclock;
20  static const float& dtime;
21  static const float& rtime;
22  static const float& fps;
23 
24 private:
25  void timeHandle();
26 
27  static sf::Clock drawClock;
28  static sf::Clock runtimeClock;
29  static float drawTime;
30  static float runTime;
31  static float framesPerSecond;
32 };
33 
34 #endif /* INCLUDE_SSG_GLOBALTIMER_HPP_ */
Definition: GlobalTimer.hpp:15
Definition: Element.hpp:22