summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-05-07 16:43:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-05-07 16:43:32 (GMT)
commitfc49f1463c091ebb58c3e5279a545e84cf949391 (patch)
treeae65ecf570d50e0377c40655adc1b5e606740729
parentb414cc16acb95b93cd69c16c9ef25ac3ea1d0741 (diff)
downloadhdf5-fc49f1463c091ebb58c3e5279a545e84cf949391.zip
hdf5-fc49f1463c091ebb58c3e5279a545e84cf949391.tar.gz
hdf5-fc49f1463c091ebb58c3e5279a545e84cf949391.tar.bz2
[svn-r5373] Purpose:
Bug fix Description: The system timer forgot to add previous cummulated time. Fixed. Platforms tested: modi4
-rw-r--r--perform/pio_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perform/pio_timer.c b/perform/pio_timer.c
index cee7f6d..6a30027 100644
--- a/perform/pio_timer.c
+++ b/perform/pio_timer.c
@@ -124,7 +124,7 @@ set_time(pio_time *pt, timer_type t, int start_stop)
struct timeval sys_t;
gettimeofday(&sys_t, NULL);
- pt->total_time[t] =
+ pt->total_time[t] +=
((double)sys_t.tv_sec +
((double)sys_t.tv_usec) / MILLISECOND) -
((double)pt->sys_timer[t].tv_sec +