IR Framework

StopWatch.stop Method

Sets the stop time of a StopWatch object.
object.start ( )

Arguments

object
Required. Always the name of a StopWatch object.



Remarks

The elapsed time is determined by comparing the stop time to the start time. Therefore, elapsed only changes when either start or stop changes. The stop method may be called several times without calling the start method, thereby providing the functionality of a "lap" time by repeatedly calling stop and elapsed.
The following example illustrates the use of the start method.

var swTracker = new Application.StopWatch();
swTracker.start();
ActiveDocument.Sections["Q-Contract Expenditures"].Process();
swTracker.stop();
Alert(msToTime(swTracker.elapsed));


Applies To:

StopWatch Object



Requirements





See Also

start() method
elapsed property