approx_time.h File Reference
#include <time.h>

Go to the source code of this file.


time_t approx_time (void)
void update_approx_time (time_t now)

Detailed Description

Header for approx_time.c.

Definition in file approx_time.h.

Function Documentation

◆ approx_time()

time_t approx_time ( void  )

◆ update_approx_time()

void update_approx_time ( time_t  now)

Update the cached estimate of the current time. This function SHOULD be called once per second, and MUST be called before the first call to get_approx_time.

Definition at line 41 of file approx_time.c.

References cached_approx_time.