Vigilante Game Framework  1.0.0.8
A 2D/3D C++ Game Framework using SFML.
Public Member Functions | List of all members
VTimer Class Reference

Single timer class for measuring the length of time between function calls. More...

#include <VTimer.h>

Inheritance diagram for VTimer:
VTimerEvent

Public Member Functions

virtual float Update (float dt)
 
bool IsPaused ()
 
float Restart ()
 
void Pause ()
 Pauses the timer.
 
void Resume ()
 Resumes timer at current point.
 
float Seconds ()
 
unsigned int Milliseconds ()
 
uint64_t Microseconds ()
 

Detailed Description

Single timer class for measuring the length of time between function calls.

Member Function Documentation

◆ IsPaused()

bool VTimer::IsPaused ( )
Returns
True if the timer is currently paused.

◆ Microseconds()

uint64_t VTimer::Microseconds ( )
Returns
Time in microseconds. (Microsecond = 1/1000th of a millisecond)

◆ Milliseconds()

unsigned int VTimer::Milliseconds ( )
Returns
Time in milliseconds. (Millisecond = 1/1000th of a second)

◆ Restart()

float VTimer::Restart ( )

Restarts timer at 0.

Returns
The time in seconds before the function was called.

◆ Seconds()

float VTimer::Seconds ( )
Returns
Time in seconds.

◆ Update()

virtual float VTimer::Update ( float  dt)
virtual

Updates the time.

Parameters
dtDelta Time to increment the time by.
Returns
The resulting time once updated.

Reimplemented in VTimerEvent.


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