int64_t sntp_get_offset(void)
Get real time offset from system time as returned by xtimer_now64()
int sntp_sync(sock_udp_ep_t *server, uint32_t timeout)
Synchronize with time server.
#define NTP_UNIX_OFFSET
Offset in seconds of NTP timestamp (seconds from 1990-01-01 00:00:00 UTC) to UNIX timestamp (seconds ...
Common IP-based transport layer end point.
static uint64_t sntp_get_unix_usec(void)
Get time in microseconds from 1970-01-01 00:00:00 UTC.
static uint64_t xtimer_now_usec64(void)
get the current system time in microseconds since start
xtimer interface definitions
#define US_PER_SEC
The number of microseconds per second.