]> git.mxchange.org Git - flightgear.git/blobdiff - Time/fg_time.h
Tweaks to Gnu automake/autoconf system.
[flightgear.git] / Time / fg_time.h
index 6e39cdb39f467adb392cc5cbfd56038b7e3368bd..c520166d51107de039411989a826bb4ca992d7d8 100644 (file)
 #define _FG_TIME_H
 
 
-#ifdef WIN32
+#include <config.h>
+
+#ifdef HAVE_WINDOWS_H
 #  include <windows.h>
 #endif
 
 #include <GL/glut.h>
 #include <time.h>
 
-#include <Include/types.h>
+#include <Include/fg_types.h>
 #include <Flight/flight.h>
 
 
@@ -87,21 +89,50 @@ struct fgLIGHT {
 
 extern struct fgLIGHT cur_light_params;
 
+typedef struct fg_timestamp_t {
+    long seconds;
+    long millis;
+} fg_timestamp;
+
+
+/* Portability wrap to get current time. */
+void timestamp(fg_timestamp *timestamp);
+
+/* Return duration in millis from first to last */
+long timediff(fg_timestamp *first, fg_timestamp *last);
+
+/* Return new timestamp given a time stamp and an interval to add in */
+void timesum(fg_timestamp *res, fg_timestamp *start, long millis);
 
 /* Initialize the time dependent variables */
 void fgTimeInit(struct fgTIME *t);
 
 /* Update the time dependent variables */
-void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *t);
+void fgTimeUpdate(fgFLIGHT *f, struct fgTIME *t);
 
 
 #endif /* _FG_TIME_H */
 
 
 /* $Log$
-/* Revision 1.14  1998/01/22 02:59:43  curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* Revision 1.18  1998/04/08 23:35:40  curt
+/* Tweaks to Gnu automake/autoconf system.
 /*
+ * Revision 1.17  1998/04/03 22:12:56  curt
+ * Converting to Gnu autoconf system.
+ * Centralized time handling differences.
+ *
+ * Revision 1.16  1998/02/07 15:29:47  curt
+ * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
+ * Revision 1.15  1998/01/27 00:48:06  curt
+ * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * system and commandline/config file processing code.
+ *
+ * Revision 1.14  1998/01/22 02:59:43  curt
+ * Changed #ifdef FILE_H to #ifdef _FILE_H
+ *
  * Revision 1.13  1998/01/19 19:27:20  curt
  * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
  * This should simplify things tremendously.