Tor  0.4.3.0-alpha-dev
Functions
tor_gettimeofday.c File Reference

Implementat gettimeofday() for windows, and other platforms without it. More...

#include "orconfig.h"
#include "lib/err/torerr.h"
#include "lib/wallclock/tor_gettimeofday.h"
#include "lib/cc/torint.h"
#include <stddef.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

void tor_gettimeofday (struct timeval *timeval)
 

Detailed Description

Implementat gettimeofday() for windows, and other platforms without it.

Definition in file tor_gettimeofday.c.

Function Documentation

◆ tor_gettimeofday()

void tor_gettimeofday ( struct timeval timeval)

Set *timeval to the current time of day. On error, log and terminate. (Same as gettimeofday(timeval,NULL), but never returns -1.)

Definition at line 42 of file tor_gettimeofday.c.

Referenced by circuit_build_times_handle_completed_hop(), circuit_expire_building(), circuit_expire_old_circuits_clientside(), circuit_extend_to_new_exit(), circuit_get_best(), cpuworker_onion_handshake_threadfn(), getinfo_helper_current_time(), init_circuit_base(), and log_prefix_().