Improve thread reap handling
[fio.git] / time.c
diff --git a/time.c b/time.c
index 08ef078277ba125d43d1ce956db2ea92091e0793..11ee0e07b94a5030cf79817fda5ce8609320bf81 100644 (file)
--- a/time.c
+++ b/time.c
@@ -142,8 +142,6 @@ static void fio_init time_init(void)
 {
        int i;
 
-       fio_gettime(&genesis, NULL);
-
        /*
         * Check the granularity of the nanosleep function
         */
@@ -164,6 +162,11 @@ static void fio_init time_init(void)
        }
 }
 
+void set_genesis_time(void)
+{
+       fio_gettime(&genesis, NULL);
+}
+
 void fill_start_time(struct timeval *t)
 {
        memcpy(t, &genesis, sizeof(genesis));