The stopWatch accessor provides a millisecond
timer.
The stopWatch can be told to start or stop by setting a parameter in
an XML fragment passed to the operator parameter.
When the stopWatch is told to start, it returns an XML fragment that captures the current
time with millisecond resoution.
<startime>1093848773</startime>
In the first DPML code example, this document is saved in the variable named stopwatch.
When the stopWatch is told to stop, the startime document is passed as
the operand parameter.
As shown in the second DPML code example, stopWatch returns a duration XML document fragment
after terminating the time interval measurement.
<duration>1060</duration>
Operator
The stopWatch accessor is started and stopped by a controlling operator document.
The format of the document is either
<stopWatch>
<start />
</stopWatch>
to start the timer or
<stopWatch>
<stop />
</stopWatch>
to stop the timer