From 43157f33a0cf66360e38cf4240d5862b9a7005f3 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 11 Jul 2001 00:10:12 +0000 Subject: [PATCH] cosmetic changes --- panda/src/express/patchfile.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/panda/src/express/patchfile.cxx b/panda/src/express/patchfile.cxx index ca4ec74386..4e18e378d2 100644 --- a/panda/src/express/patchfile.cxx +++ b/panda/src/express/patchfile.cxx @@ -23,17 +23,15 @@ #include "patchfile.h" #include "crypto_utils.h" // MD5 stuff +// PROFILING /////////////////////////////////////////////////////// //#define PROFILE_PATCH_BUILD #ifdef PROFILE_PATCH_BUILD #include "clockObject.h" - ClockObject *globalClock = ClockObject::get_global_clock(); #define GET_PROFILE_TIME() globalClock->get_real_time() - #define START_PROFILE(var) double var = GET_PROFILE_TIME() - #define END_PROFILE(startTime, name) \ cout << name << " took " << (GET_PROFILE_TIME() - (startTime)) << " seconds" << endl @@ -41,6 +39,7 @@ ClockObject *globalClock = ClockObject::get_global_clock(); #define START_PROFILE(var) #define END_PROFILE(startTime, name) #endif +//////////////////////////////////////////////////////////////////// // this actually slows things down... //#define USE_MD5_FOR_HASHTABLE_INDEX_VALUES @@ -538,8 +537,8 @@ build_hash_link_tables(const char *buffer_orig, PN_uint32 length_orig, } #ifdef PROFILE_PATCH_BUILD - cout << "time spent calculating footprint hashes: " << hashCalc << endl; - cout << "time spent traversing the link table: " << linkSearch << endl; + cout << "calculating footprint hashes took " << hashCalc << " seconds" << endl; + cout << "traversing the link table took " << linkSearch << " seconds" << endl; #endif END_PROFILE(hashingFootprints, "hashing footprints");