ilusm.dev

ntp

NTP time synchronization: query, offset calculation, drift detection.

Load with: use ntp

Quick example

use ntp

result = ntpqr("value")
prn(result)

Functions

Functions

ntpqr(host)

Performs the operation. Takes host.

ntpof(host)

Performs the operation. Takes host.

ntprt(host)

Performs the operation. Takes host.

ntpnw(host)

Performs the operation. Takes host.

ntpok(host, max_ms)

Performs the operation. Takes host, max_ms.

ntpml(hosts)

Performs the operation. Takes hosts.

Module aliases

These are the public-facing names you call with use ntp:

  • ntp.qry(h)
  • ntp.off(h)
  • ntp.rtt(h)
  • ntp.now(h)
  • ntp.ok(h, m)
  • ntp.best(hs)

Notes

  • NTP time synchronisation.