Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::Timestep Class Reference

Represents a time step in seconds. More...

#include <Timestep.h>

Public Member Functions

float GetMilliseconds () const
 Returns the time in milliseconds.
 
float GetSeconds () const
 Returns the time in seconds.
 
 operator float () const
 
 Timestep (float time=0.0f)
 Constructs a Timestep with the given time in seconds.
 

Private Attributes

float m_Time
 

Detailed Description

Represents a time step in seconds.

Constructor & Destructor Documentation

◆ Timestep()

Muto::Timestep::Timestep ( float  time = 0.0f)
inline

Constructs a Timestep with the given time in seconds.

Parameters
timeThe time in seconds.
18 : m_Time(time)
19 {
20 }
float m_Time
Definition Timestep.h:29
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51

References m_Time.

Member Function Documentation

◆ GetMilliseconds()

float Muto::Timestep::GetMilliseconds ( ) const
inline

Returns the time in milliseconds.

27{ return m_Time * 1000.0f; }

References m_Time.

◆ GetSeconds()

float Muto::Timestep::GetSeconds ( ) const
inline

Returns the time in seconds.

25{ return m_Time; }

References m_Time.

◆ operator float()

Muto::Timestep::operator float ( ) const
inline
22{ return m_Time; }

References m_Time.

Member Data Documentation

◆ m_Time

float Muto::Timestep::m_Time
private

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