[flashrom] [PATCH] Handle insufficient DOS timer precision
Uwe Hermann
uwe at hermann-uwe.de
Thu Jun 3 17:43:42 CEST 2010
On Thu, Jun 03, 2010 at 03:44:14PM +0200, Carl-Daniel Hailfinger wrote:
> Tests on DOS and Windows appreciated. I tested on Linux.
Tested on Windows XP, 32 bit, built using MinGW, output:
flashrom v0.9.2-runknown on unknown machine, built with GCC 3.4.5 (mingw-vista special r3), little endian
flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OS timer resolution is 15625 usecs, 467M loops per second, 10 myus = 0 us, 100 myus = 0 us, 1000 myus = 0 us, 10000 myus = 0 us, 62500 myus = 62500 us, OK.
(the "-runknown" is OK, I don't have cmdline svn tools in my $PATH)
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
> + timeusec = (measure_delay(resolution * 10) * 100) / (resolution * 10);
Minor nitpick: please make this one fit in 80 chars / line.
Uwe.
--
http://hermann-uwe.de | http://sigrok.org
http://randomprojects.org | http://unmaintained-free-software.org
More information about the flashrom
mailing list