/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/dict_hw_test.cpp

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-15 19:24:16 UTC
  • Revision ID: csa@dside.dyndns.org-20091215192416-hsqqyaivreiw1gso
Print timings using reportMessage calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
    gettimeofday(&tv3, NULL);
365
365
    time[3] = (tv3.tv_sec - tv1.tv_sec) * 1000000 + (tv3.tv_usec - tv1.tv_usec);
366
366
    time[4] = (tv3.tv_sec - tv2.tv_sec) * 1000000 + (tv3.tv_usec - tv2.tv_usec);
367
 
    printf("\n");
368
 
    printf("Global timings\n");
369
 
    printf("--------------\n");
 
367
    reportMessage("");
 
368
    reportMessage("Global timings");
 
369
    reportMessage("--------------");
370
370
    print_timing("Overall", time[3]);
371
371
    print_timing("Initialization", time[0]);
372
372
    print_timing("Cleanup", time[4]);
375
375
    print_timing("Processing/Pushing Data", time[5], maximg - 1);
376
376
    print_timing("Processing/Waiting Result", time[2] - time[1] - time[5], maximg - 1);
377
377
    print_timing("Processing/Writeout", time[1], maximg - 1);
378
 
    printf("\n");
 
378
    reportMessage("");
379
379
#endif /* DICT_HW_MEASURE_TIMINGS */
380
380
 
381
381
}