Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::Timer Class Reference

High-resolution manual stopwatch. More...

#include <Timer.h>

Public Member Functions

 Timer ()
 Constructs and starts a new timer.
void Reset ()
 Resets the timer to the current time.
float Elapsed () const
 Returns the elapsed time since the last reset.
float ElapsedMillis () const
 Returns the elapsed time since the last reset.

Detailed Description

High-resolution manual stopwatch.

Provides precise timing using the Windows high-performance counter. Typically used for explicit measurement of scoped work or performance-critical sections.

Constructor & Destructor Documentation

◆ Timer()

Raven::Timer::Timer ( )
inline

Constructs and starts a new timer.

Member Function Documentation

◆ Elapsed()

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

Returns the elapsed time since the last reset.

Returns
Elapsed time in seconds.

◆ ElapsedMillis()

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

Returns the elapsed time since the last reset.

Returns
Elapsed time in milliseconds.

◆ Reset()

void Raven::Timer::Reset ( )
inline

Resets the timer to the current time.


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