---
title: "wait"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738004/wait"
format: markdown
---
# Description

Use this command to create a time delay (specified in ms). It can be used after a command that is known to take a while to complete, and one that needs to be completed for future commands in the script, i.e., waiting for the system to connect.

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `wait milliseconds` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `milliseconds` | int | yes | The time that the script will pause on the command, eg, 3000 is 3 seconds. |

### Flags

None

## Return value

void

## Examples

```plaintext
//print to log the time at the beginning and end of the script
int $TimeNow = `getSystemTime`;
print $TimeNow; 
wait 3000;
$TimeNow = `getSystemTime`;print $TimeNow; 
//The log shows 2 numbers that have a difference of 3
//meaning 3 seconds have elapsed
```