Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::Clock< MaxNanosecondCount > Struct Template Reference

#include <Clock.hpp>

Public Member Functions

void reset ()
 
bool isPaused ()
 
void pause ()
 
void start (float speed=1.0f)
 

Public Attributes

float deltaTime {1.0 / 60.0}
 
float scaleTime {0.0f}
 

Private Attributes

std::chrono::high_resolution_clock::time_point _lastReset {}
 

Member Function Documentation

◆ isPaused()

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
bool shkyera::Clock< MaxNanosecondCount >::isPaused ( )
inline

◆ pause()

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
void shkyera::Clock< MaxNanosecondCount >::pause ( )
inline

◆ reset()

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
void shkyera::Clock< MaxNanosecondCount >::reset ( )
inline

◆ start()

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
void shkyera::Clock< MaxNanosecondCount >::start ( float  speed = 1.0f)
inline

Member Data Documentation

◆ _lastReset

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
std::chrono::high_resolution_clock::time_point shkyera::Clock< MaxNanosecondCount >::_lastReset {}
private

◆ deltaTime

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
float shkyera::Clock< MaxNanosecondCount >::deltaTime {1.0 / 60.0}

◆ scaleTime

template<size_t MaxNanosecondCount = std::numeric_limits<size_t>::max()>
float shkyera::Clock< MaxNanosecondCount >::scaleTime {0.0f}

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