Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::TimerData Struct Reference

Holds the name, elapsed time, and threshold for a timer. More...

#include <Timer.h>

Public Member Functions

 TimerData (std::string name, float time, float threshold)

Public Attributes

std::string Name
 The name of the timer.
float ElapsedTime
 The elapsed time since the timer was started.
float Threshold
 The threshold for the timer.

Detailed Description

Holds the name, elapsed time, and threshold for a timer.

This struct is used to store the name of the timer, the elapsed time since it was started, and an optional threshold for performance measurement.

Constructor & Destructor Documentation

◆ TimerData()

Raven::TimerData::TimerData ( std::string name,
float time,
float threshold )
inline

Member Data Documentation

◆ ElapsedTime

float Raven::TimerData::ElapsedTime

The elapsed time since the timer was started.

This is measured in seconds.

◆ Name

std::string Raven::TimerData::Name

The name of the timer.

This is used to identify the timer in logs or reports.

◆ Threshold

float Raven::TimerData::Threshold

The threshold for the timer.

This is used to determine if the elapsed time exceeds a certain limit.


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