tor_gettimeofday.h File Reference

Header for tor_gettimeofday.c. More...

#include "lib/testsupport/testsupport.h"

Go to the source code of this file.


void tor_gettimeofday (struct timeval *timeval)

Detailed Description

Header for tor_gettimeofday.c.

Definition in file tor_gettimeofday.h.

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_().