BogaNet 1.4.0
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
BogaNet.Util.StopWatch Class Reference

Stopwatch to measure performance etc. More...

Public Member Functions

void Start ()
 Starts the stopwatch.
 
long AddPoint (object obj)
 Adds point as an object to the current elapsed time.
 
long Stop ()
 Stops the stopwatch.
 

Properties

List< Tuple< object, long > > Points = [] [get]
 Recorded points.
 
List< string > PointsAndTime [get]
 Recorded points and time as string list.
 
long ElapsedTime [get]
 Elapsed time in milliseconds.
 

Detailed Description

Stopwatch to measure performance etc.

Member Function Documentation

◆ AddPoint()

long BogaNet.Util.StopWatch.AddPoint ( object obj)

Adds point as an object to the current elapsed time.

Parameters
objObject for the point
Returns
Elapsed time in milliseconds
Exceptions
ArgumentNullException

◆ Start()

void BogaNet.Util.StopWatch.Start ( )

Starts the stopwatch.

◆ Stop()

long BogaNet.Util.StopWatch.Stop ( )

Stops the stopwatch.

Property Documentation

◆ ElapsedTime

long BogaNet.Util.StopWatch.ElapsedTime
get

Elapsed time in milliseconds.

◆ Points

List<Tuple<object, long> > BogaNet.Util.StopWatch.Points = []
get

Recorded points.

◆ PointsAndTime

List<string> BogaNet.Util.StopWatch.PointsAndTime
get

Recorded points and time as string list.


The documentation for this class was generated from the following file: