Exemple #1
0
void Timer::PrintHyperedgePaper(FILE *fp)
{
    fprintf(fp, "%5lld & %5lld & %5lld & %5lld\n\n",
        toMsec(cTotal[tmOrthogGraph]),
        toMsec(cTotal[tmHyperedgeForest] + cTotal[tmHyperedgeMTST]),
        toMsec(cTotal[tmHyperedgeAlt]),
        toMsec(cTotal[tmHyperedgeImprove]));
}
void Timer::Print(const int t)
{
   bigclock_t avg = toMsec(toAvg(cTotal[t], cTally[t]));
   bigclock_t pind = toMsec(toAvg(cPath[t], cPathTally[t]));
   bigclock_t pavg = toMsec(toAvg(cPath[t], cTally[t]));
   double max = toMsec(cMax[t]); 
   double pmax = toMsec(cPathMax[t]);
   printf("\t%lld %d %lld %.0f %lld %d %lld %.0f %lld\n",
           cTotal[t], cTally[t], avg, max,
           cPath[t], cPathTally[t], pavg, pmax, pind);
}
Exemple #3
0
void Timer::Print(const TimerIndex t, FILE *fp)
{
   bigclock_t avg = toMsec(toAvg(cTotal[t], cTally[t]));
   bigclock_t pind = toMsec(toAvg(cPath[t], cPathTally[t]));
   bigclock_t pavg = toMsec(toAvg(cPath[t], cTally[t]));
   double max = toMsec(cMax[t]); 
   double pmax = toMsec(cPathMax[t]);
   fprintf(fp, "%lld %d %lld %.0f %lld %d %lld %.0f %lld\n",
           cTotal[t], cTally[t], avg, max,
           cPath[t], cPathTally[t], pavg, pmax, pind);
}