AcUtils
A high performance abstraction layer for AccuRev
Public Member Functions | List of all members
AcUtils.AcStopWatch Class Reference

Determine the amount of time a task takes to run. More...

Public Member Functions

delegate void ElapsedTimeHandler (string elapsedTime)
 
 AcStopWatch (ElapsedTimeHandler elapsedTimeHandler)
 Constructor that takes an ElapsedTimeHandler. More...
 
void Start ()
 Set the stopwatch to zero and begin measuring elapsed time. More...
 
void Stop ()
 Call the client's ElapsedTimeHandler with the elapsed time as a formatted string in days, hours, minutes and seconds. More...
 

Detailed Description

Determine the amount of time a task takes to run.

Definition at line 25 of file AcStopWatch.cs.

Constructor & Destructor Documentation

AcUtils.AcStopWatch.AcStopWatch ( ElapsedTimeHandler  elapsedTimeHandler)
inline

Constructor that takes an ElapsedTimeHandler.

Parameters
elapsedTimeHandlerThe client's ElapsedTimeHandler to call with the elapsed time.
See also
Example in AcStopWatchMarker

Definition at line 38 of file AcStopWatch.cs.

Member Function Documentation

delegate void AcUtils.AcStopWatch.ElapsedTimeHandler ( string  elapsedTime)

The ElapsedTimeHandler delegate type.

See also
Example in AcStopWatchMarker.
void AcUtils.AcStopWatch.Start ( )
inline

Set the stopwatch to zero and begin measuring elapsed time.

Definition at line 46 of file AcStopWatch.cs.

Referenced by AcUtils.AcStopWatchMarker.AcStopWatchMarker().

void AcUtils.AcStopWatch.Stop ( )
inline

Call the client's ElapsedTimeHandler with the elapsed time as a formatted string in days, hours, minutes and seconds.

Definition at line 54 of file AcStopWatch.cs.

Referenced by AcUtils.AcStopWatchMarker.Dispose().