From cdf006c75ea5c6723ed95ffe0e67b22aa6885a48 Mon Sep 17 00:00:00 2001 From: Izaak Beekman Date: Fri, 18 Jan 2019 13:47:16 -0500 Subject: [PATCH] Try to define a header for mpi_wtime --- base/modules/fakempi.c | 5 +++-- base/modules/gettimeofday.h | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 base/modules/gettimeofday.h diff --git a/base/modules/fakempi.c b/base/modules/fakempi.c index e9b54f634..22666c9bd 100644 --- a/base/modules/fakempi.c +++ b/base/modules/fakempi.c @@ -1,11 +1,12 @@ +#include +#include #ifdef WIN32 #include #include +#include "gettimeofday.h" #else #include #endif -#include -#include #include "psb_internals.h" diff --git a/base/modules/gettimeofday.h b/base/modules/gettimeofday.h new file mode 100644 index 000000000..67673b2c4 --- /dev/null +++ b/base/modules/gettimeofday.h @@ -0,0 +1,15 @@ +#include +#include +#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) + #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 +#else + #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL +#endif + +struct timezone +{ + int tz_minuteswest; /* minutes W of Greenwich */ + int tz_dsttime; /* type of dst correction */ +}; + +int gettimeofday(struct timeval *tv, struct timezone *tz);