Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::Timer Class Reference

A high-resolution timer class. More...

#include <Timer.h>

Public Member Functions

 Timer ()
void Reset ()
 Resets the timer to the current time.
float Elapsed () const
 Returns the elapsed time since the timer was started.
float ElapsedMillis () const
 Returns the elapsed time since the timer was started in milliseconds.

Detailed Description

A high-resolution timer class.

This class provides methods to measure elapsed time with microsecond precision.

Constructor & Destructor Documentation

◆ Timer()

Raven::Timer::Timer ( )
inline

Member Function Documentation

◆ Elapsed()

float Raven::Timer::Elapsed ( ) const
inline

Returns the elapsed time since the timer was started.

This method calculates the elapsed time in seconds.

Returns
The elapsed time in seconds.

◆ ElapsedMillis()

float Raven::Timer::ElapsedMillis ( ) const
inline

Returns the elapsed time since the timer was started in milliseconds.

This method calculates the elapsed time in milliseconds.

Returns
The elapsed time in milliseconds.

◆ Reset()

void Raven::Timer::Reset ( )
inline

Resets the timer to the current time.

This method sets the start time to the current high-resolution clock time.


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