[PATCH] Split status/eta code out of fio.c

All in the name of making the code base easier to go through.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/time.c b/time.c
index c7f898b..ad5ee3f 100644
--- a/time.c
+++ b/time.c
@@ -3,6 +3,8 @@
 
 #include "fio.h"
 
+static struct timeval genesis;
+
 unsigned long utime_since(struct timeval *s, struct timeval *e)
 {
 	double sec, usec;
@@ -120,3 +122,13 @@
 		td->rate_pending_usleep -= overtime;
 	}
 }
+
+unsigned long mtime_since_genesis(void)
+{
+	return mtime_since_now(&genesis);
+}
+
+void time_init(void)
+{
+	gettimeofday(&genesis, NULL);
+}