StopWatch.elapsed PropertyReturns the time, in milliseconds, between the start and stop events of a StopWatch object. Read-only.object.elapsed Arguments
RemarksThe 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.Calling start resets elapsed to 0. The following example illustrates the use of the elapsed property. var swTracker = new Application.StopWatch(); ActiveDocument.Sections["Q-Contract Expenditures"].Process(); swTracker.stop(); Alert(msToTime(swTracker.elapsed)); Applies To:StopWatch ObjectRequirementsSee Alsostart() methodstop() method |