view future.h @ 228:5e69d9abbbf2

Update Hg expected frequency with value of last measurement
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 09 Oct 2014 15:58:32 +0200
parents a2f99632a80c
children ec81395bf08d
line wrap: on
line source

#ifndef __FUTURE_H__
#define __FUTURE_H__

#define PTR_TO_INT(p) ((int) ((intptr_t)(p)))
#define INT_TO_PTR(u) ((void *) ((intptr_t)(u)))

double round(double x);

typedef unsigned int time_t;
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);

#endif