GNU libmicrohttpd
0.9.68
|
#include "mhd_mono_clock.h"
Go to the source code of this file.
Functions | |
void | MHD_monotonic_sec_counter_init (void) |
void | MHD_monotonic_sec_counter_finish (void) |
time_t | MHD_monotonic_sec_counter (void) |
Variables | |
static time_t | sys_clock_start |
Type of monotonic clock source
Definition at line 101 of file mhd_mono_clock.c.
time_t MHD_monotonic_sec_counter | ( | void | ) |
Monotonic seconds counter, useful for timeout calculation. Tries to be not affected by manually setting the system real time clock or adjustments by NTP synchronization.
Definition at line 338 of file mhd_mono_clock.c.
References NULL, and sys_clock_start.
void MHD_monotonic_sec_counter_finish | ( | void | ) |
Deinitialise monotonic seconds counter by freeing any allocated resources
Definition at line 317 of file mhd_mono_clock.c.
void MHD_monotonic_sec_counter_init | ( | void | ) |
Initialise monotonic seconds counter.
Definition at line 139 of file mhd_mono_clock.c.
References _MHD_CLOCK_GET_TIME, _MHD_CLOCK_GETHRTIME, _MHD_CLOCK_GETTICKCOUNT64, _MHD_CLOCK_GETTIME, _MHD_CLOCK_NO_SOURCE, _MHD_CLOCK_PERFCOUNTER, NULL, and sys_clock_start.
|
static |
Definition at line 83 of file mhd_mono_clock.c.
Referenced by MHD_monotonic_sec_counter(), and MHD_monotonic_sec_counter_init().