X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Time%2Fevent.cxx;h=24e7c490e4b4f3840b6dd5821aa87f32ec8e5cf8;hb=c74350c4fe126328ced5e080a4d262d0bcba5369;hp=54f077cd13f35a7297f1b2e0a3ac3381fb6e4ebd;hpb=ad3ae513488acc0364815218dbfd22dc13bf9eab;p=flightgear.git diff --git a/Time/event.cxx b/Time/event.cxx index 54f077cd1..24e7c490e 100644 --- a/Time/event.cxx +++ b/Time/event.cxx @@ -43,7 +43,7 @@ #include STL_ALGORITHM #include STL_FUNCTIONAL -#include +#include #include "event.hxx" @@ -214,13 +214,13 @@ void fgEVENT_MGR::Process( void ) { fg_timestamp cur_time; unsigned int i, size; - fgPrintf(FG_EVENT, FG_DEBUG, "Processing events\n"); + FG_LOG( FG_EVENT, FG_DEBUG, "Processing events" ); // get the current time timestamp(&cur_time); - fgPrintf( FG_EVENT, FG_DEBUG, - " Current timestamp = %ld\n", cur_time.seconds); + FG_LOG( FG_EVENT, FG_DEBUG, + " Current timestamp = " << cur_time.seconds ); // printf("Checking if anything is ready to move to the run queue\n"); @@ -231,9 +231,9 @@ void fgEVENT_MGR::Process( void ) { // e = *current++; e_ptr = &event_table[i]; if ( e_ptr->status == fgEVENT::FG_EVENT_READY ) { - fgPrintf(FG_EVENT, FG_DEBUG, - " Item %d, current %d, next run @ %ld\n", - i, cur_time.seconds, e_ptr->next_run.seconds); + FG_LOG( FG_EVENT, FG_DEBUG, + " Item " << i << " current " << cur_time.seconds + << " next run @ " << e_ptr->next_run.seconds ); if ( timediff(&cur_time, &(e_ptr->next_run)) <= 0) { run_queue.push_back(e_ptr); e_ptr->status = fgEVENT::FG_EVENT_QUEUED; @@ -258,6 +258,11 @@ fgEVENT_MGR::~fgEVENT_MGR( void ) { // $Log$ +// Revision 1.9 1998/11/06 21:18:24 curt +// Converted to new logstream debugging facility. This allows release +// builds with no messages at all (and no performance impact) by using +// the -DFG_NDEBUG flag. +// // Revision 1.8 1998/09/15 02:09:29 curt // Include/fg_callback.hxx // Moved code inline to stop g++ 2.7 from complaining.