Try to define a header for mpi_wtime

pull/12/head
Izaak Beekman 8 years ago
parent 0fe562b5b0
commit cdf006c75e
No known key found for this signature in database
GPG Key ID: A93CE70D8021BD0F

@ -1,11 +1,12 @@
#include <stdio.h>
#include <string.h>
#ifdef WIN32
#include <time.h>
#include <windows.h>
#include "gettimeofday.h"
#else
#include <sys/time.h>
#endif
#include <stdio.h>
#include <string.h>
#include "psb_internals.h"

@ -0,0 +1,15 @@
#include <time.h>
#include <windows.h>
#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);
Loading…
Cancel
Save