> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/lan-turtle-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/lan-turtle-hub/payload-development/duckyscript-for-lan-turtle/wait_for_ntp.md).

# WAIT\_FOR\_NTP

## WAIT\_FOR\_NTP

Often it is desirable (or required) to wait for a time sync before performing some operations on the LAN Turtle Hub.  For instance, actions such as communicating with sites protected by SSL, or generating log files with accurate time stamps.

`WAIT_FOR_NTP` accomplishes this; it can delay a payload until NTP is acquired or until a timeout expires.

### Options

The `WAIT_FOR_NTP` command expects up to a single option:

```
WAIT_FOR_NTP
WAIT_FOR_NTP [seconds]
```

#### Seconds

If a number is provided, `WAIT_FOR_NTP` will wait that many seconds before giving up.  If `WAIT_FOR_NTP` times out, the system time may not be accurate.
