home *** CD-ROM | disk | FTP | other *** search
- #ifndef FPS_H
- #define FPS_H
-
- #include <list>
-
- class FPS
- {
- unsigned interval_ms;
- std::list<unsigned> records;
- float fps;
- public:
- explicit FPS(unsigned interval_ms);
- ~FPS();
- void record(unsigned time_ms);
- float get_fps()const;
- };
- #endif //FPS_H