Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Displayable / INC / FPSCounter.h
1 #ifndef FPS_COUNTER_H
2 #define FPS_COUNTER_H
3
4 #include "envBilatDisplayable.h"
5 #include <time.h>
6
7 class CBI_DISPLAYABLE FPSCounter
8 {
9 public:
10 FPSCounter();
11
12 virtual ~FPSCounter();
13
14 void frame();
15
16 int getFPS() const;
17
18 private:
19 //Output
20 int fps;
21
22 // Tools
23 int frameCount;
24 time_t startTimeMs;
25 };
26
27 #endif