VOX
A little voxel engine
Loading...
Searching...
No Matches
Timer< ChronoCount, HistorySize > Class Template Reference

#include <Timer.hpp>

Collaboration diagram for Timer< ChronoCount, HistorySize >:
Collaboration graph

Public Member Functions

 Timer ()
 
 ~Timer ()=default
 
void start (const int index=0)
 
void stop (const int index=0)
 
template<typename T = std::chrono::nanoseconds>
double elapsed (const int index=0) const
 
template<typename T = std::chrono::nanoseconds>
double average (const int index=0) const
 

Constructor & Destructor Documentation

◆ Timer()

template<size_t ChronoCount = 1, size_t HistorySize = 1000>
Timer< ChronoCount, HistorySize >::Timer ( )
inline

◆ ~Timer()

template<size_t ChronoCount = 1, size_t HistorySize = 1000>
Timer< ChronoCount, HistorySize >::~Timer ( )
default

Member Function Documentation

◆ average()

template<size_t ChronoCount = 1, size_t HistorySize = 1000>
template<typename T = std::chrono::nanoseconds>
double Timer< ChronoCount, HistorySize >::average ( const int  index = 0) const
inline

◆ elapsed()

template<size_t ChronoCount = 1, size_t HistorySize = 1000>
template<typename T = std::chrono::nanoseconds>
double Timer< ChronoCount, HistorySize >::elapsed ( const int  index = 0) const
inline

◆ start()

template<size_t ChronoCount = 1, size_t HistorySize = 1000>
void Timer< ChronoCount, HistorySize >::start ( const int  index = 0)
inline

◆ stop()

template<size_t ChronoCount = 1, size_t HistorySize = 1000>
void Timer< ChronoCount, HistorySize >::stop ( const int  index = 0)
inline

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