Mercurial > hg > fxanalyse
diff future.h @ 81:be814b934eca
Implement gettimeofday()
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 18 Mar 2013 12:36:34 +0100 |
parents | 9d57d1fcbcd5 |
children | 4102fe614df2 |
line wrap: on
line diff
--- a/future.h Mon Mar 18 12:34:05 2013 +0100 +++ b/future.h Mon Mar 18 12:36:34 2013 +0100 @@ -1,1 +1,17 @@ double round(double x); + +typedef long int suseconds_t; + +struct timeval { + time_t tv_sec; /* seconds since 1970-01-01 */ + suseconds_t tv_usec; /* microseconds */ +}; + +struct timezone { + int tz_minuteswest; + int tz_dsttime; +}; + +int gettimeofday(struct timeval *tp, struct timezone *tzp); + +struct tm * gmtime_r(time_t const *t, struct tm *tp);