From: Jon S. B. <jb...@us...> - 2007-01-15 23:13:53
|
Update of /cvsroot/jsbsim/JSBSim/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv21582/src Modified Files: JSBSim.cpp Log Message: Added two new properties when using JSBSim in standalone mode, for realtime statistics reporting Index: JSBSim.cpp =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/src/JSBSim.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** JSBSim.cpp 15 Jan 2007 23:11:14 -0000 1.25 --- JSBSim.cpp 15 Jan 2007 23:13:49 -0000 1.26 *************** *** 408,413 **** for (int i=0; i<(int)(sim_lag_time/frame_duration); i++) { // catch up sim time to actual elapsed time. result = FDMExec->Run(); ! cycle_duration = getcurrentseconds() - current_seconds; ! current_seconds = getcurrentseconds(); if (FDMExec->Holding()) break; } --- 408,413 ---- for (int i=0; i<(int)(sim_lag_time/frame_duration); i++) { // catch up sim time to actual elapsed time. result = FDMExec->Run(); ! cycle_duration = getcurrentseconds() - current_seconds; // Calculate cycle duration ! current_seconds = getcurrentseconds(); // Get new current_seconds if (FDMExec->Holding()) break; } |