#include <time.h>
#include "fio.h"
-#include "hash.h"
#include "smalloc.h"
-#include "verify.h"
-#include "trim.h"
-#include "diskutil.h"
-#include "profile.h"
-#include "lib/rand.h"
-#include "memalign.h"
-#include "client.h"
-#include "server.h"
int main(int argc, char *argv[], char *envp[])
{
if (initialize_fio(envp))
return 1;
+#if !defined(CONFIG_GETTIMEOFDAY) && !defined(CONFIG_CLOCK_GETTIME)
+#error "No available clock source!"
+#endif
+
if (parse_options(argc, argv))
return 1;
+ fio_time_init();
+
if (nr_clients) {
if (fio_start_all_clients())
return 1;