First snapshot of FIO for Windows

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/gettime.c b/gettime.c
index 0ad8d92..72fda3f 100644
--- a/gettime.c
+++ b/gettime.c
@@ -5,6 +5,7 @@
 #include <unistd.h>
 #include <math.h>
 #include <sys/time.h>
+#include <time.h>
 
 #include "fio.h"
 #include "smalloc.h"
@@ -230,7 +231,7 @@
 	for (i = 0; i < 10; i++) {
 		double this = cycles[i];
 
-		if ((max(this, mean) - min(this, mean)) > S)
+		if ((fmax(this, mean) - fmin(this, mean)) > S)
 			continue;
 		samples++;
 		avg += this;