diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-01-11 19:44:51 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-01-11 19:44:51 (GMT) |
commit | aa8897734fe3c7c2e8b64820577162eaa4bce4fe (patch) | |
tree | 9ee02ef0a798a95bcf0887a3f56edad8cd76d86f /perform/pio_timer.c | |
parent | aabfa5c03f1637afce3b04d0c9cdb30360c30a18 (diff) | |
download | hdf5-aa8897734fe3c7c2e8b64820577162eaa4bce4fe.zip hdf5-aa8897734fe3c7c2e8b64820577162eaa4bce4fe.tar.gz hdf5-aa8897734fe3c7c2e8b64820577162eaa4bce4fe.tar.bz2 |
[svn-r4816]
Purpose:
Feature Fix
Description:
Added timer from open to close for write. Changed reporting of time
for write and read to only measure the actual read/write instead of
the open/close as well...
Platforms tested:
Linux(pp)
Diffstat (limited to 'perform/pio_timer.c')
-rw-r--r-- | perform/pio_timer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perform/pio_timer.c b/perform/pio_timer.c index 0bfb96a..2ebdbce 100644 --- a/perform/pio_timer.c +++ b/perform/pio_timer.c @@ -39,6 +39,10 @@ pio_time * pio_time_new(unsigned int type) { pio_time *pt = (pio_time *)calloc(1, sizeof(struct pio_time_)); + register int i; + + for (i = 0; i < NUM_TIMERS; ++i) + pt->total_time[i] = 0.0; pt->type = type; return pt; |