CVBpy 15.0
StopWatch Class Reference

Speed measurement object. More...

Inherits object.

Public Member Functions

None start (self)
 Start (or re-start) the StopWatch. More...
 

Properties

 mode = property
 int: Mode for which the StopWatch was created (see cvb.StopWatchMode).
 
 time_span = property
 int: Gets the time (in ms), that has elapsed since start (or since the construction of the object, if has not been called yet).
 

Detailed Description

Speed measurement object.

Create a StopWatch object.

By default creates a stop watch for multi - CPU architectures.

The stop watch is automatically started after creation.

Parameters

mode : int Mode for the stop watch (see cvb.StopWatchMode).

Member Function Documentation

◆ start()

None start (   self)

Start (or re-start) the StopWatch.

This will reset the time span property to 0.0. All subsequent readouts of the time span property will give the time in milliseconds, that has elapsed since the last start or since the construction of the object.