tor_gettimeofday.c File Reference
#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.


 MOCK_IMPL (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


MOCK_IMPL ( 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 41 of file tor_gettimeofday.c.