PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
PixelBullet::Timer Class Reference

A high-resolution timer for measuring elapsed time. More...

#include <Timer.hpp>

Classes

struct  Impl
 

Public Member Functions

void Reset ()
 Resets the timer to the current time.
 
float GetElapsedSeconds () const
 Returns the elapsed time (in seconds) since the last Reset.
 
float GetElapsedMilliseconds () const
 Returns the elapsed time (in milliseconds) since the last Reset.
 

Detailed Description

A high-resolution timer for measuring elapsed time.

Member Function Documentation

◆ GetElapsedMilliseconds()

float PixelBullet::Timer::GetElapsedMilliseconds ( ) const

Returns the elapsed time (in milliseconds) since the last Reset.

◆ GetElapsedSeconds()

float PixelBullet::Timer::GetElapsedSeconds ( ) const

Returns the elapsed time (in seconds) since the last Reset.

◆ Reset()

void PixelBullet::Timer::Reset ( )

Resets the timer to the current time.


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