diff options
Diffstat (limited to 'perform/pio_timer.c')
-rw-r--r-- | perform/pio_timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perform/pio_timer.c b/perform/pio_timer.c index 6a30027..d053e10 100644 --- a/perform/pio_timer.c +++ b/perform/pio_timer.c @@ -25,7 +25,7 @@ * The number to divide the tv_usec field with to get a nice decimal to add to * the number of seconds. */ -#define MILLISECOND 1000000.0 +#define MICROSECOND 1000000.0 /* global variables */ pio_time *timer_g; /* timer: global for stub functions */ @@ -126,9 +126,9 @@ set_time(pio_time *pt, timer_type t, int start_stop) gettimeofday(&sys_t, NULL); pt->total_time[t] += ((double)sys_t.tv_sec + - ((double)sys_t.tv_usec) / MILLISECOND) - + ((double)sys_t.tv_usec) / MICROSECOND) - ((double)pt->sys_timer[t].tv_sec + - ((double)pt->sys_timer[t].tv_usec) / MILLISECOND); + ((double)pt->sys_timer[t].tv_usec) / MICROSECOND); } } } |