LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Timer Class Reference

Measures time, it's a timer. More...

#include <timer.h>

Public Member Functions

void Start ()
 Start the timer.
 
void Stop ()
 Stop the timer.
 
void Pause ()
 Pause the timer.
 
void Unpause ()
 Unpause the timer.
 
int Restart ()
 
int Ticks () const
 
bool Started () const
 Check if Timer is started.
 
bool Paused () const
 Check if Timer is paused.
 

Detailed Description

Measures time, it's a timer.

A simple timer

Member Function Documentation

int Timer::Restart ( )

Restart the timer and return the elapsed ticks

Returns
The elapsed ticks
int Timer::Ticks ( ) const

Get the elapsed ticks

Returns
The elapsed ticks

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