1
0
Fork 0

Bind a new property, /sim/time/elapsed-ms, giving the number of

milliseconds elapsed since the simulation began.
This commit is contained in:
david 2002-03-12 16:29:32 +00:00
parent c22018db05
commit d23c674846

View file

@ -454,6 +454,16 @@ setPilotPositionZOffset (float z)
}
/**
* Return the number of milliseconds elapsed since simulation started.
*/
static long
getElapsedTime_ms ()
{
return globals->get_elapsed_time_ms();
}
/**
* Return the current Zulu time.
*/
@ -808,6 +818,7 @@ fgInitProps ()
fgTie("/sim/view/pilot/z-offset-m",
getPilotPositionZOffset, setPilotPositionZOffset);
fgSetArchivable("/sim/view/pilot/z-offset-m");
fgTie("/sim/time/elapsed-ms", getElapsedTime_ms);
fgTie("/sim/time/gmt", getDateString, setDateString);
fgSetArchivable("/sim/time/gmt");
fgTie("/sim/time/gmt-string", getGMTString);