DubiousEngine  0.2.0
Simple Game Engine
Dubious::Utility::Timer Class Reference

A Timer. More...

#include <Timer.h>

Public Member Functions

 Timer ()
 Constructor. Calls Start. More...
 
 Timer (const Timer &)=delete
 
Timeroperator= (const Timer &)=delete
 
void start ()
 Starts the timer. More...
 
int64_t restart ()
 Timer Restart. More...
 
int64_t elapsed () const
 Elapsed Time. More...
 

Detailed Description

A Timer.

The Timer class is a simple thing used to keep track of how much time has passed.

Constructor & Destructor Documentation

Dubious::Utility::Timer::Timer ( )

Constructor. Calls Start.

Dubious::Utility::Timer::Timer ( const Timer )
delete

Member Function Documentation

int64_t Dubious::Utility::Timer::elapsed ( ) const

Elapsed Time.

Gets the number of milliseconds since the last call to start or restart. Does not restart the timer.

Returns
elapsed milliseconds since last start or restart
Timer& Dubious::Utility::Timer::operator= ( const Timer )
delete
int64_t Dubious::Utility::Timer::restart ( )

Timer Restart.

Restarts the timer and returns how much time has elapsed since the last call to Start or Restart

Returns
milliseconds since last start or restart
void Dubious::Utility::Timer::start ( )

Starts the timer.


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