StopWatch - Client

Use a StopWatch object to measure the duration of operations.

The StopWatch API can be used in client-side scripts using ListV2 and ListV3 APIs.

StopWatch - getTime()

Returns the number of milliseconds since the timer started.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The number of milliseconds since the timer started.

StopWatch - restart()

Resets the timer to the current time.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
void

StopWatch - StopWatch()

Creates an instance of the StopWatch class.

Uses the current time as the start time.

Table 5. Parameters
Name Type Description
None

StopWatch - StopWatch(Date initialDate)

Creates an instance of the StopWatch class using the specified date as the initial value.

Table 6. Parameters
Name Type Description
initialDate Date The initial date for the object.

StopWatch - toString()

The elapsed time as HH:MM:SS.SSS.

Table 7. Parameters
Name Type Description
None
Table 8. Returns
Type Description
String The elapsed time formatted as HH:MM:SS.SSS.