jcs:sleep() Function

Syntax

expr jcs:sleep(seconds, <milliseconds>)

Description

Cause the script to sleep for a specified number of seconds and (optionally) milliseconds. You can use this function to help determine how a device component works over time. To do this, write a script that issues a command, calls the jcs:sleep() function, and then reissues the same command.

Parameters

In the following example, jcs:sleep(1) causes the script to sleep for 1 second, and jcs:sleep(0, 10) causes the script to sleep for 10 milliseconds.

SLAX syntax:

 expr jcs:sleep(1);
expr jcs:sleep(0, 10);

XSLT syntax:

<xsl:value-of select="jcs:sleep(1)"/>
<xsl:value-of select="jcs:sleep(0, 10)"/>