GNU libmicrohttpd 0.9.77
|
#include "mhd_mono_clock.h"
Go to the source code of this file.
Enumerations | |
enum | _MHD_mono_clock_source { _MHD_CLOCK_NO_SOURCE = 0 , _MHD_CLOCK_GETTIME , _MHD_CLOCK_GET_TIME , _MHD_CLOCK_GETHRTIME , _MHD_CLOCK_GETTICKCOUNT64 , _MHD_CLOCK_PERFCOUNTER } |
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
Enumerator | |
---|---|
_MHD_CLOCK_NO_SOURCE | No monotonic clock |
_MHD_CLOCK_GETTIME | clock_gettime() with specific clock |
_MHD_CLOCK_GET_TIME | clock_get_time() with specific clock service |
_MHD_CLOCK_GETHRTIME | gethrtime() / 1000000000 |
_MHD_CLOCK_GETTICKCOUNT64 | GetTickCount64() / 1000 |
_MHD_CLOCK_PERFCOUNTER |
Definition at line 100 of file mhd_mono_clock.c.
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 337 of file mhd_mono_clock.c.
References MHD_HTTP_OK, NULL, and sys_clock_start.
Referenced by digest_auth_check_all(), internal_add_connection(), MHD_connection_set_timeout(), MHD_connection_update_last_activity_(), MHD_daemon_get_timeout(), MHD_queue_auth_fail_response2(), MHD_request_handle_idle_(), MHD_resume_suspended_connections_(), MHD_update_last_activity_(), and thread_main_handle_connection().
Deinitialise monotonic seconds counter by freeing any allocated resources
Definition at line 316 of file mhd_mono_clock.c.
References MHD_HTTP_OK.
Referenced by MHD_fini().
Initialise monotonic seconds counter.
Definition at line 138 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, MHD_HTTP_OK, NULL, and sys_clock_start.
Referenced by MHD_init().
|
static |
Definition at line 83 of file mhd_mono_clock.c.
Referenced by MHD_monotonic_msec_counter(), MHD_monotonic_sec_counter(), and MHD_monotonic_sec_counter_init().