MeshLib Documentation
Loading...
Searching...
No Matches
MR::FrameCounter Class Reference

#include <MRFrameCounter.h>

Public Member Functions

void startDraw ()
 
MRVIEWER_API void endDraw (bool swapped)
 
MRVIEWER_API void reset ()
 

Public Attributes

size_t totalFrameCounter { 0 }
 
size_t swappedFrameCounter { 0 }
 
size_t startFrameNum { 0 }
 
size_t fps { 0 }
 
std::chrono::duration< double > drawTimeMilliSec { 0 }
 

Member Function Documentation

◆ endDraw()

MRVIEWER_API void MR::FrameCounter::endDraw ( bool swapped)

◆ reset()

MRVIEWER_API void MR::FrameCounter::reset ( )

◆ startDraw()

void MR::FrameCounter::startDraw ( )
inline

Member Data Documentation

◆ drawTimeMilliSec

std::chrono::duration<double> MR::FrameCounter::drawTimeMilliSec { 0 }

◆ fps

size_t MR::FrameCounter::fps { 0 }

◆ startFrameNum

size_t MR::FrameCounter::startFrameNum { 0 }

◆ swappedFrameCounter

size_t MR::FrameCounter::swappedFrameCounter { 0 }

◆ totalFrameCounter

size_t MR::FrameCounter::totalFrameCounter { 0 }

The documentation for this class was generated from the following file: