StopWatch

StopWatch


Provides a timing mechanism using QueryPerformanceCounter if available, otherwise the system time is used.


See Also

Project VBCorLib Overview | StopWatchStatic

Implements:

IObject 

Public:

Properties:

NameDescription
 Elapsed (get)Returns the elapsed time as a TimeSpan object. 
 ElapsedMilliseconds (get)Returns the time elapsed in milliseconds. 
 ElapsedTicks (get)Returns the elapsed time in Ticks. 
 IsRunning (get)Returns if the StopWatch is currently running. 

Methods:

NameDescription
 EqualsThis function determines if the value passed in is the same as the current object instance. Meaning, are the Value and this object the same object in memory. 
 GetHashCodeReturns a psuedo-unique number used to help identify this object in memory. The current method is to return the value obtained from ObjPtr. 
 ResetStops the StopWatch object and resets the elapsed time to zero. 
 StartCountStarts the StopWatch object. 
 StopCountHalts the StopWatch if it is running, storing the elapsed time so far. 
 ToStringReturns a string representation of this object.