SNTP.start

You're seeing just the function start, go back to SNTP module for more information.

Specs

start(Enumerable.t()) :: {:ok, pid()}

Starts the SNTP.Retriever

  • options are an Enumerable.t() with these keys:
    • auto_start is a boolean() defaults to true
    • retreive_every is a non_neg_integer() defaults to 86400000 every 24 hour
    • host is binary() | charlist() defualts to 'pool.ntp.org'
    • port is an non_neg_integer() between 0..65535 defualts to 123
    • timeout is an non_neg_integer() defualts to :infinity
    • resolve_reference is a boolean() defualts to false

Examples

iex> SNTP.start()
{:ok, #PID<0.000.0>}