78 double getFps() const noexcept;
82 std::unique_ptr<Timer> _tElapsed;
83 std::unique_ptr<Timer> _tPrint;
88 struct LinkedElement* _oldest;
89 struct LinkedElement* _newest;
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
OTC_SDK_API FramerateCounter & operator=(const FramerateCounter &)=delete
No copy assignment.
OTC_SDK_API FramerateCounter(double interval=DEFAULT_INTERVAL, unsigned int smoothSize=DEFAULT_SMOOTH_SIZE)
Constructor.
OTC_SDK_API FramerateCounter(FramerateCounter &&)=delete
No move constructor.
OTC_SDK_API FramerateCounter & operator=(FramerateCounter &&)=delete
No move assignment.
virtual OTC_SDK_API ~FramerateCounter()
Destructor.
double getFps() const noexcept
Returns the current frames per seconds.
Definition FramerateCounter.h:94
static constexpr double DEFAULT_INTERVAL
Default interval in milliseconds.
Definition FramerateCounter.h:36
static constexpr unsigned int DEFAULT_SMOOTH_SIZE
Default smoothing size.
Definition FramerateCounter.h:38
OTC_SDK_API bool trigger()
Takes a new time measurement and updates the frames per seconds.
OTC_SDK_API FramerateCounter(const FramerateCounter &)=delete
No copy constructor.
Main SDK namespace.
Definition DeviceInfo.h:23