avrdude-dev
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]