summaryrefslogtreecommitdiffstats
path: root/perform/pio_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/pio_timer.c')
-rw-r--r--perform/pio_timer.c4
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;