Vivid
Loading...
Searching...
No Matches
Timer Class Reference

Timer class. More...

#include <Timer.h>

Public Member Functions

 Timer (Timer &)=delete
 
float getTimeMs () const
 
float getTimeNs () const
 

Static Public Member Functions

static TimePoint Now ()
 Gets the current time.
 

Protected Attributes

TimePoint m_StartTime
 
TimePoint m_EndTime
 

Static Protected Attributes

static const std::chrono::high_resolution_clock s_Clock
 

Detailed Description

Timer class.

A class that contains functions to get the time in milliseconds and nanoseconds.

Definition at line 20 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )

Definition at line 8 of file Timer.cpp.

Member Function Documentation

◆ getTimeMs()

float Timer::getTimeMs ( ) const
inline

Definition at line 39 of file Timer.h.

◆ getTimeNs()

float Timer::getTimeNs ( ) const
inline

Definition at line 40 of file Timer.h.

◆ Now()

TimePoint Timer::Now ( )
static

Gets the current time.

Returns
TimePoint The current time.

Definition at line 3 of file Timer.cpp.

Member Data Documentation

◆ m_EndTime

TimePoint Timer::m_EndTime
protected

Definition at line 26 of file Timer.h.

◆ m_StartTime

TimePoint Timer::m_StartTime
protected

Definition at line 25 of file Timer.h.

◆ s_Clock

const std::chrono::high_resolution_clock Timer::s_Clock
staticprotected

Definition at line 23 of file Timer.h.


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