Game Engine
Architected a C++ game engine with a runtime reflection system - employing Chain of
Loading...
Searching...
No Matches
Fiea::Engine::Timer Class Reference

A simple wrapper class for doing ad-hoc profiling. More...

#include <Timer.h>

Public Member Functions

 Timer ()
double Elapsed () const
 Retrieves the time since start or last reset.
void Reset ()
 Resets the start time.

Detailed Description

A simple wrapper class for doing ad-hoc profiling.

Usage (single measure): Timer t; /* operation to measure *‍/ double time = t.Elapsed();

Constructor & Destructor Documentation

◆ Timer()

Fiea::Engine::Timer::Timer ( )
inline

Member Function Documentation

◆ Elapsed()

double Fiea::Engine::Timer::Elapsed ( ) const
inline

Retrieves the time since start or last reset.

Returns
The elapsed time, in milliseconds
Here is the caller graph for this function:

◆ Reset()

void Fiea::Engine::Timer::Reset ( )
inline

Resets the start time.


The documentation for this class was generated from the following file:
  • FIEAGameEngine/include/FIEAGameEngine/Timer.h