duncan
Mom and Dad were wrong!
Public Member Functions
timer::Timer Class Reference

#include <timer.h>

List of all members.

Public Member Functions

 Timer (unsigned int micros=1000)
unsigned int elapsed ()
void reset ()

Detailed Description

A wrapper around the gettimeofday function.

Author:
Harry Slatyer

see LICENSE


Constructor & Destructor Documentation

Timer::Timer ( unsigned int  micros = 1000)

Initialise the timer.

Parameters:
microsnumber of microseconds in a 'unit' of time

Member Function Documentation

unsigned int Timer::elapsed ( )

Find the elapsed 'units' of time.

Returns:
units of time elapsed since last reset
void Timer::reset ( )

Reset the timer.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations