diff probes.c @ 60:7b799a46cc87

Added compiler switch to turn on and off debug-only probes, deleted time-junk
author Me
date Mon, 08 Nov 2010 03:57:46 -0800
parents 3bac84e4e56e
children a6c442d52590 13b22ffb8a2f
line diff
     1.1 --- a/probes.c	Sun Nov 07 06:51:34 2010 -0800
     1.2 +++ b/probes.c	Mon Nov 08 03:57:46 2010 -0800
     1.3 @@ -91,7 +91,6 @@
     1.4      }
     1.5   }
     1.6  #else
     1.7 -#ifdef STATS__USE_DBL_PROBES
     1.8  
     1.9  /*
    1.10   * In practice, probe operations are called from the app, from inside slaves
    1.11 @@ -353,31 +352,3 @@
    1.12     fflush( stdout );
    1.13   }
    1.14  #endif
    1.15 -#endif
    1.16 -
    1.17 -/* Junk left over from when trying the different ways to get time stamps..
    1.18 -         struct timeval tim;
    1.19 -         gettimeofday(&tim, NULL);
    1.20 -         double t1=tim.tv_sec+(tim.tv_usec/1000000.0);
    1.21 -
    1.22 -         clock_t startClockStamp = clock();
    1.23 -
    1.24 -         TSCount startMultStamp = getTSCount();
    1.25 -*/
    1.26 -
    1.27 -/*
    1.28 -         TSCount endMultStamp = getTSCount();
    1.29 -
    1.30 -         dividerParams->numTSCsToExe = endMultStamp - startMultStamp;
    1.31 -         printf("\ntime to execute: %d\n", endMultStamp - startMultStamp);
    1.32 -
    1.33 -         //==================================================================
    1.34 -         clock_t endClockStamp = clock();
    1.35 -         printf("%.4lf seconds of processing\n",
    1.36 -                (endClockStamp - startClockStamp)/(double)CLOCKS_PER_SEC);
    1.37 -
    1.38 -         //==================================================================
    1.39 -         gettimeofday(&tim, NULL);
    1.40 -         double t2=tim.tv_sec+(tim.tv_usec/1000000.0);
    1.41 -         printf("%.6lf seconds elapsed\n", t2-t1);
    1.42 -*/