path: root/cli_classic.c
diff options
authorCarl-Daniel Hailfinger <>2010-06-03 21:48:13 +0000
committerCarl-Daniel Hailfinger <>2010-06-03 21:48:13 +0000
commitb929d110c1ef02bced974e1fe8ca7b3561ed87fa (patch)
treef10a8c278c45e8bde5afd2b92434612af1afec4c /cli_classic.c
parent301703bc5b84d5e4a38298469ef00fdfe9aaa6a2 (diff)
Measure OS timer precision to refine calibration
Do not trust the OS at all and measure timer precision before calibrating the delay loop and use that measurement to get reasonable precision for our own delay code. Print a measurement for a delay of 4x the OS timer resolution. Be precise about how bad the deviation was if we had to recalculate. Tested on Windows XP, 32 bit, built using MinGW by Uwe. Tested on FreeDOS v1.0 Final, 32bit, built using DJGPP 4.3.2 by Idwer. Corresponding to flashrom svn r1028. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Uwe Hermann <> Acked-by: Idwer Vollering <>
Diffstat (limited to 'cli_classic.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud