Debug print actual time base calculated by myusec_calibrate_delay()

Corresponding to flashrom svn r314 and coreboot v2 svn r3569.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
diff --git a/udelay.c b/udelay.c
index f7257c9..e4500ae 100644
--- a/udelay.c
+++ b/udelay.c
@@ -55,6 +55,12 @@
 	// compute one microsecond. That will be count / time
 	micro = count / timeusec;
 
-	printf_debug("%ldM loops per second. ", (unsigned long)micro);
+	gettimeofday(&start, 0);
+	myusec_delay(100);
+	gettimeofday(&end, 0);
+	timeusec = 1000000 * (end.tv_sec - start.tv_sec) +
+	    (end.tv_usec - start.tv_usec);
+	printf_debug("%ldM loops per second, 100 myus = %ld us. ",
+	    (unsigned long)micro, timeusec);
 	printf("OK.\n");
 }