CVB.Net 14.0
StopWatch Class Reference

Speed measurement object with selectable accuracy, based on the functions exported by the CVCUtilities.dll. More...

Inherits IDisposable.

Public Types

enum  AccuracyLevel { Unknown = 0 , Normal = 1 , High = 2 }
 Relative accuracy level at which the stop watch works. More...
 

Public Member Functions

 StopWatch ()
 Create a StopWatch object with default initialization (MultiCPU mode).
 
 StopWatch (StopWatchMode mode)
 Create a StopWatch object. More...
 
void Start ()
 Start (or re-start) the stopwatch. This will reset the TimeSpan property to 0.0. All subsequent readouts of the TimeSpan property will give the time in milliseconds, that has elapsed since the last call to Start or since the construction of the Stopwatch object.
 
void Dispose ()
 Dispose method.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Disposes the native object. More...
 

Properties

UsTimeSpan TimeSpan [get]
 Gets the time, that has elapsed since Start was last called (or since the construction of the Stopwatch object if Start has not been called yet). More...
 
StopWatchMode Mode [get]
 Mode for which the StopWatch was created.
 

Detailed Description

Speed measurement object with selectable accuracy, based on the functions exported by the CVCUtilities.dll.

Member Enumeration Documentation

◆ AccuracyLevel

Relative accuracy level at which the stop watch works.

Enumerator
Unknown 

Unknown accuracy level

Normal 

Normal accuracy level

High 

High accuracy level

Constructor & Destructor Documentation

◆ StopWatch()

Create a StopWatch object.

Parameters
modeMode to create the stopwatch object for.
Exceptions
System.InsufficientMemoryExceptionIf the stopwatch cannot be created due to an out of memory situation

Member Function Documentation

◆ Dispose()

virtual void Dispose ( bool  disposing)
protectedvirtual

Disposes the native object.

Parameters
disposingtrue if called from IDisposable interface; false if called from finalizer.

Property Documentation

◆ TimeSpan

UsTimeSpan TimeSpan
get

Gets the time, that has elapsed since Start was last called (or since the construction of the Stopwatch object if Start has not been called yet).

Elapsed time in milliseconds.