You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
441 B
24 lines
441 B
|
|
#include <ctime>
|
|
#include <atomic>
|
|
|
|
class framerateChecker{
|
|
private:
|
|
bool hasBegun = false;
|
|
|
|
public:
|
|
std::time_t tBegin, tEnd;
|
|
std::atomic<int> tick,fps = 0;
|
|
long frameCounter = 0;
|
|
|
|
void tickBegin();
|
|
void tickUpdate();
|
|
};
|
|
|
|
class fcheckManager{
|
|
public:
|
|
static framerateChecker fcDrawMenu;
|
|
static framerateChecker fcMergeUI;
|
|
static framerateChecker fcShow;
|
|
static framerateChecker fcCam;
|
|
}; |