stopWatch
Used for timing of operations
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > stopWatch

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:ext:sys

Definition

Active URI Base

active:org.ten60.ura.util.stopWatch

Format

<instr>
  <type>org.ten60.ura.util.stopWatch</type>
  <operand>var:stopwatch</operand>
  <operator>
    <stopWatch>
      <stop />
    </stopWatch>
  </operator>
  <target>var:stopwatch</target>
</instr>

Syntax

ArgumentRulesDescription
typeMandatory org.ten60.ura.util.stopWatch
operandMandatory stopWatch document
operatorMandatory stopWatch control document
targetOptional duration

The org.ten60.ura.util.stopWatch accessor can be used to provide millisecond timing of XML processes. The stopWatch is controlled by an operator document.

On starting the result is a document which holds the start time in milliseconds, this document must be given back to the stopWatch in the operand when stopping the stopWatch to compute the duration. The final result is a duration document

<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


(C) 2003, 1060 Research Limited
© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.