Stops the execution of the script thread.
1 system.sleep
<system.sleep time='time'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atime | integer | Number of milliseconds. |
Returns | |
---|---|
Type | Description |
Long |
Example
Stops the script execution during 3 seconds.
Copy
<xsql-script name='system_sleep_sample1'> <body> <system.sleep time='3000' /> </body> </xsql-script>
You can observe as the script execution which has delayed 3 seconds:
Copy
Execution completed...........: 3.016 secs.