Home Documentation Tutorials API GitHub

All Types

const class studs::Ntpd

sys::Obj
  studs::Daemon
    studs::Ntpd

The Ntpd daemon provides support for synchronizing wall clock time using the NTP protocol.

See NTP chapter for details.

cur

const static Ntpd? cur(Bool checked := true)

Get the Ntpd instance for this VM. If an instance is not found, throw Err if checked otherwise return null.

make

new make()

servers

Str[] servers

The current NTP server pool.

sync

Bool sync(Duration? timeout := null)

Block until ntpd acquires a valid time. If timeout is null this method blocks indefinietly. Returns true time was acquired, or false if timed out.