From f04b756f6f28c27c6badde9601f3605d16cb4b0c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 7 May 2002 11:56:34 -0500 Subject: [svn-r5374] Purpose: Name Change Description: Changed the macro's name from "MILLISECOND" to "MICROSECOND" since, as Quincey pointed out, that's what it is ;). Platforms tested: Linux --- perform/pio_timer.c | 6 +++--- 1 file 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); } } } -- cgit v0.12