Mercurial > hg > fxanalyse
annotate future.h @ 208:b955e35c07ae
Fix includes
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 31 Mar 2014 17:03:38 +0200 |
parents | 4102fe614df2 |
children | a2f99632a80c |
rev | line source |
---|---|
91
4102fe614df2
Fix timestamping. Cleanup data providers
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
81
diff
changeset
|
1 #ifndef __FUTURE_H__ |
4102fe614df2
Fix timestamping. Cleanup data providers
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
81
diff
changeset
|
2 #define __FUTURE_H__ |
4102fe614df2
Fix timestamping. Cleanup data providers
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
81
diff
changeset
|
3 |
16
9d57d1fcbcd5
Implementation of the C99 round() function
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
diff
changeset
|
4 double round(double x); |
81
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
5 |
208 | 6 typedef unsigned int time_t; |
81
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
7 typedef long int suseconds_t; |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
8 |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
9 struct timeval { |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
10 time_t tv_sec; /* seconds since 1970-01-01 */ |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
11 suseconds_t tv_usec; /* microseconds */ |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
12 }; |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
13 |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
14 struct timezone { |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
15 int tz_minuteswest; |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
16 int tz_dsttime; |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
17 }; |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
18 |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
19 int gettimeofday(struct timeval *tp, struct timezone *tzp); |
be814b934eca
Implement gettimeofday()
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
16
diff
changeset
|
20 |
91
4102fe614df2
Fix timestamping. Cleanup data providers
Daniele Nicolodi <daniele.nicolodi@obspm.fr>
parents:
81
diff
changeset
|
21 #endif |