[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avrdude-dev] Adding elapsed time
From: |
Alex Shepherd |
Subject: |
RE: [avrdude-dev] Adding elapsed time |
Date: |
Wed, 30 Jul 2003 12:55:39 +1200 |
> :)I'm using 'gettimeofday()' to get the current time. Hopefully that
> :)works with Windows.
>
> It's usually a bad idea to test for equality with a float
> since the equality
> may never be true due to the nature of floats (does 0 == 10^-400?).
>
> I'd suggest just resetting the timer to 0 when the header is
> passed since
> that is supposed to indicate that an operation is starting.
>
> Been too long since I had to deal with gettimeofday(), so I
> can't pass judgement on that.
Windows (cygwin) has it and I had used it in the ppiwin.c usleep()
I'll give the patch a go
Cheers
Alex
- RE: [avrdude-dev] optional hash mark progress indicator, (continued)
RE: [avrdude-dev] Verify errors,, Alex Shepherd, 2003/07/25
RE: [avrdude-dev] Verify errors,, Daniel Williamson, 2003/07/29
- [avrdude-dev] Adding elapsed time, Alex Shepherd, 2003/07/29
- Re: [avrdude-dev] Adding elapsed time, Theodore A. Roth, 2003/07/29
- Re: [avrdude-dev] Adding elapsed time, Brian Dean, 2003/07/29
- Re: [avrdude-dev] Adding elapsed time, Brian Dean, 2003/07/29
- Re: [avrdude-dev] Adding elapsed time, Theodore A. Roth, 2003/07/29
- RE: [avrdude-dev] Adding elapsed time,
Alex Shepherd <=
- Re: [avrdude-dev] Adding elapsed time, Brian Dean, 2003/07/29
- RE: [avrdude-dev] Adding elapsed time, Alex Shepherd, 2003/07/30
- RE: [avrdude-dev] Adding elapsed time, Theodore A. Roth, 2003/07/30
- RE: [avrdude-dev] Adding elapsed time, Alex Shepherd, 2003/07/30
- Re: [avrdude-dev] Adding elapsed time, Brian Dean, 2003/07/30
Re: [avrdude-dev] Adding elapsed time, Joerg Wunsch, 2003/07/30
Re: [avrdude-dev] Adding elapsed time, Theodore A. Roth, 2003/07/30
Re: [avrdude-dev] Adding elapsed time, Joerg Wunsch, 2003/07/31
RE: [avrdude-dev] Adding elapsed time, Alex Shepherd, 2003/07/29