timer.h
Classes, functions, and variables in this file
structtimer
unsigned long longmilliseconds ()

struct timer

A simple structure that measures time.

Public members
timer ()
voidstart ()
unsigned long longmilliseconds ()
doublenanoseconds ()
timer::timer()

Constructor that starts the timer.

void timer::start()

Starts the timer.

unsigned long long timer::milliseconds()

Returns the number of milliseconds elapsed since the timer was last started.

double timer::nanoseconds()

Returns the number of nanoseconds elapsed since the timer was last started.

unsigned long long milliseconds()

On Windows and Mac, this returns the number of milliseconds elapsed since the system was started. On Linux, it returns the system's best estimate of the current time of day.