Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gettimeofday.h File Reference

#include <time.h>

Include dependency graph for gettimeofday.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int gettimeofday (struct timeval *tv, struct timezone *tz)


Function Documentation

int gettimeofday struct timeval tv,
struct timezone *  tz
 

Definition at line 58 of file gettimeofday.c.

References timeval::tv_sec, and timeval::tv_usec.

Referenced by ares_init_options(), time(), and wait_for_semaphore().

00058                                                          {
00059   struct timespec now;
00060   clock_gettime(CLOCK_MONOTONIC, &now);
00061   tv->tv_sec = (long) now.tv_sec;
00062   tv->tv_usec = now.tv_nsec / 1000;
00063   return 0;
00064 } 


Generated on Wed Jan 14 12:59:04 2004 for RTL-lwIP-0.4 by doxygen 1.3.4