opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

StartStopTimer Class Reference

StartStopTimer Class Reference

A start-stop timer class. More...

#include <timer.h>

Public Member Functions

 StartStopTimer ()
 Constructor.
void start ()
 Starts the timer.
void stop ()
 Stops the timer and updates timer value.
void reset ()
 Resets the timer value to 0.

Data Fields

double value
 Value of the timer.

Detailed Description

A start-stop timer class.

Can be used to time portions of code.

Definition at line 46 of file timer.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 60 of file timer.h.


Member Function Documentation

void reset (  )

Resets the timer value to 0.

Definition at line 85 of file timer.h.

void start (  )

Starts the timer.

Definition at line 68 of file timer.h.

void stop (  )

Stops the timer and updates timer value.

Definition at line 76 of file timer.h.


Field Documentation

double value

Value of the timer.

Definition at line 54 of file timer.h.