From b0a7b6050245bd9f9124705c491e250d6dd76deb Mon Sep 17 00:00:00 2001 From: Peter Sadrozinski Date: Sat, 31 Mar 2012 11:43:45 -0400 Subject: [PATCH] remove time statistics from windows build will investigate porting gettimeofday later --- src/Airports/GenAirports850/airport.cxx | 29 ++++++++++++++++++- src/Airports/GenAirports850/linearfeature.cxx | 2 +- src/Airports/GenAirports850/parser.cxx | 24 +++++++++++---- 3 files changed, 48 insertions(+), 7 deletions(-) diff --git a/src/Airports/GenAirports850/airport.cxx b/src/Airports/GenAirports850/airport.cxx index 01deaa39..a39555f6 100644 --- a/src/Airports/GenAirports850/airport.cxx +++ b/src/Airports/GenAirports850/airport.cxx @@ -468,6 +468,7 @@ void Airport::BuildBtg(const string& root, const string_list& elev_src ) // parse main airport information double apt_lon = 0.0, apt_lat = 0.0; +#if !defined(_MSC_VER) struct timeval build_start; struct timeval build_end; struct timeval cleanup_start; @@ -475,6 +476,7 @@ void Airport::BuildBtg(const string& root, const string_list& elev_src ) struct timeval triangulation_start; struct timeval triangulation_end; struct timeval log_time; +#endif // Find the average of all the runway and heliport long / lats int num_samples = 0; @@ -508,8 +510,10 @@ void Airport::BuildBtg(const string& root, const string_list& elev_src ) } } - // Starting to clip the polys + // Starting to clip the polys (for now - only UNIX builds) +#if !defined(_MSC_VER) gettimeofday(&build_start, NULL); +#endif // Add the linear features if (features.size()) @@ -534,8 +538,10 @@ void Airport::BuildBtg(const string& root, const string_list& elev_src ) SG_LOG(SG_GENERAL, SG_DEBUG, "no markings"); } +#if !defined(_MSC_VER) gettimeofday(&log_time, NULL); SG_LOG( SG_GENERAL, SG_ALERT, "Finished building Linear Features for " << icao << " at " << ctime(&log_time.tv_sec) ); +#endif // Build runways next for ( unsigned int i=0; i