GNU libmicrohttpd 0.9.77
Loading...
Searching...
No Matches
mhd_mono_clock.h File Reference
#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)
 

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

Monotonic seconds counter. 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.

◆ MHD_monotonic_sec_counter_finish()

void MHD_monotonic_sec_counter_finish ( void  )

Deinitialise monotonic seconds counter by freeing any allocated resources

Deinitialise monotonic seconds and milliseconds counters by freeing any allocated resources

Definition at line 316 of file mhd_mono_clock.c.

◆ MHD_monotonic_sec_counter_init()

void MHD_monotonic_sec_counter_init ( void  )

Initialise monotonic seconds counter.

Initialise monotonic seconds and milliseconds counters.

Definition at line 138 of file mhd_mono_clock.c.