Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
rune::Clock Class Reference

A clock that can be used to tell how much time has passed. More...

#include <clock.h>

Public Member Functions

 Clock ()
 Default constructor to create a clock and have the start time be equal to the time it was created.
 
long getElapsedTimeAsMilliseconds ()
 Get the number of milliseconds since the clock was created or restarted. More...
 
void reset ()
 Reset the clock so that the total amount of time pass equals 0.
 

Detailed Description

A clock that can be used to tell how much time has passed.

Author
Thomas Montano
Date
April 27 2020

Member Function Documentation

◆ getElapsedTimeAsMilliseconds()

long rune::Clock::getElapsedTimeAsMilliseconds ( )

Get the number of milliseconds since the clock was created or restarted.

Returns
The total elapsed time in milliseconds.

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