view 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 source

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);