18 mFrequency(frequency > 0 ? frequency : 1)
29 mTime0 = std::chrono::high_resolution_clock::now();
37 mTime1 = std::chrono::high_resolution_clock::now();
38 int64_t delta = std::chrono::duration_cast<std::chrono::milliseconds>(
54 return 1000.0 * numFrames / numMilliseconds;
68 return 1000.0 * numMilliseconds / numFrames;
82 double rate = numMilliseconds / numFrames;
83 return static_cast<int64_t
>(std::round(rate));
94 stream.setf(std::ios::fixed | std::ios::showpoint);
int64_t mAccumulatedFrameCount
std::chrono::high_resolution_clock::time_point mTime1
int64_t GetMillisecondsPerFrame() const
std::string GetFPS() const
std::chrono::high_resolution_clock::time_point mTime0
double GetSecondsPerFrame() const
GLsizei const GLchar *const * string
OnIdleTimer(int64_t frequency=30)
double GetFramesPerSecond() const