Skip to content

Commit

Permalink
remove useless timer function
Browse files Browse the repository at this point in the history
  • Loading branch information
disheng222 committed Oct 10, 2022
1 parent 42aaa84 commit 5857c6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Binary file modified hdf5-filter/H5Z-SZ/docs/H5Z-SZ-Guide.pdf
Binary file not shown.
20 changes: 0 additions & 20 deletions hdf5-filter/H5Z-SZ/src/H5Z_SZ.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@
#include "H5Z_SZ.h"
#include "H5PLextern.h"

struct timeval startTime;
struct timeval endTime; /* Start and end times */
struct timeval costStart; /*only used for recording the cost*/
double totalCost = 0;

void cost_start()
{
totalCost = 0;
gettimeofday(&costStart, NULL);
}

void cost_end()
{
double elapsed;
struct timeval costEnd;
gettimeofday(&costEnd, NULL);
elapsed = ((costEnd.tv_sec*1000000+costEnd.tv_usec)-(costStart.tv_sec*1000000+costStart.tv_usec))/1000000.0;
totalCost += elapsed;
}


//sz_params* conf_params = NULL;
int load_conffile_flag = 1; //set to load configuration file at the beginning by user
Expand Down

0 comments on commit 5857c6e

Please sign in to comment.