Files Class List

Detailed Description

Simple stopwatch class.

Use this class to measure the time between Start and Stop calls.

#include <cyTimer.h>

Public Member Functions

void Start ()
 
double Stop () const
 

Protected Attributes

clock_t startTime
 

Member Function Documentation

§ Start()

void Start ( )

Starts the timer.

§ Stop()

double Stop ( ) const

Returns the time passed since Start call in seconds. Note that this method does not actually stop the timer, it only returns the time passed since Start call. Therefore, you can call this method as many times as you like once you call Start method once.

Member Data Documentation

§ startTime

clock_t startTime
protected

Keeps the starting time.