GNU libmicrohttpd  0.9.72
mhd_mono_clock.h File Reference

internal monotonic clock functions implementations More...

#include "mhd_options.h"
Include dependency graph for mhd_mono_clock.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

internal monotonic clock functions implementations

internal monotonic clock functions declarations

Author
Karlson2k (Evgeny Grin)

Definition in file mhd_mono_clock.h.

Function Documentation

◆ MHD_monotonic_sec_counter()

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.

Returns
number of seconds from some fixed moment

Definition at line 337 of file mhd_mono_clock.c.

References 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_request_handle_idle_(), MHD_resume_suspended_connections_(), MHD_update_last_activity_(), and thread_main_handle_connection().

Here is the caller graph for this function:

◆ MHD_monotonic_sec_counter_finish()

void MHD_monotonic_sec_counter_finish ( void  )

Deinitialise monotonic seconds counter by freeing any allocated resources

Definition at line 316 of file mhd_mono_clock.c.

Referenced by MHD_fini().

Here is the caller graph for this function:

◆ MHD_monotonic_sec_counter_init()

void MHD_monotonic_sec_counter_init ( void  )

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, NULL, and sys_clock_start.

Referenced by MHD_init().

Here is the caller graph for this function: