Table of Contents
fasttime_gettimeofday, fasttime_gettimeofday_context - return the current
system time
#include <fasttime.h>
int fasttime_gettimeofday(struct
timeval * tv);
int fasttime_gettimeofday_context(fasttime_context_t context,
struct timeval * tv);
These methods return the current system
time as estimated by the fasttime library. See gettimeofday(2)
for a description
of the timeval struct.
If the first form is used, the default context must
have been initialised; otherwise the passed in context must have been initialised.
See fasttime_init(3)
.
Both methods return 0 on succes, -1
on failure.
fasttime_gettimeofday is thread-safe.
fasttime_gettimeofday_context
is thread-safe.
Alex Holkner (alex@partiallydisassembled.net)
http://fasttime.sourceforge.net/
fasttime_create_context(3)
fasttime_init(3)
fasttime_getticks(3)
fasttime_statistics(3)
fasttimed(8)
Table of Contents