#include "common.h"
#include "lib/host_addr.h"
Go to the source code of this file.
Functions | |
void | clock_init (void) |
Called at startup time to initialize local structures. | |
void | clock_close (void) |
Called at shutdown time to cleanup local structures. | |
void | clock_update (time_t update, gint precision, const host_addr_t addr) |
Update clock information, with given precision in seconds. | |
time_t | clock_loc2gmt (time_t stamp) |
Given a local timestamp, use our skew to correct it to GMT. | |
time_t | clock_gmt2loc (time_t stamp) |
Given a GMT timestamp, convert it to a local stamp using our skew. |
|
Called at shutdown time to cleanup local structures.
|
|
Given a GMT timestamp, convert it to a local stamp using our skew.
|
|
Called at startup time to initialize local structures.
|
|
Given a local timestamp, use our skew to correct it to GMT.
|
|
Update clock information, with given precision in seconds. The `ip' is used to avoid using the same source more than once per REUSE_DELAY seconds. |