2 // fg_time.hxx -- data structures and routines for managing time related stuff.
4 // Written by Curtis Olson, started August 1997.
6 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 # error This library requires C++
44 #include "Include/compiler.h"
45 #ifdef FG_HAVE_STD_INCLUDES
51 #include <FDM/flight.hxx>
54 // Define a structure containing global time parameters
56 // the date/time in various forms
57 // Unix "calendar" time in seconds
60 // Break down of GMT time
66 // modified Julian date
69 // side real time at prime meridian
72 // local side real time
75 // the difference between the precise sidereal time algorithm
76 // result and the course result.
77 // course + diff has good accuracy for the short term
80 // An offset in seconds from the true time. Allows us to adjust
81 // the effective time of day.
84 // How much to change the value of warp each iteration. Allows us
85 // to make time progress faster than normal.
88 // Paused (0 = no, 1 = yes)
92 extern fgTIME cur_time_params;
95 // Update time variables such as gmt, julian date, and sidereal time
96 void fgTimeInit(fgTIME *t);
99 // Update the time dependent variables
100 void fgTimeUpdate(FGInterface *f, fgTIME *t);
103 #endif // _FG_TIME_HXX