|
|
|
@ -1,4 +1,6 @@
|
|
|
|
#if ! (defined(_WIN32) || defined(WIN32))
|
|
|
|
#if (defined(_WIN32) || defined(WIN32))
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
#else
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
@ -112,7 +114,7 @@ double mpi_wtime()
|
|
|
|
|
|
|
|
|
|
|
|
QueryPerformanceCounter(&tim);
|
|
|
|
QueryPerformanceCounter(&tim);
|
|
|
|
QeryPerformanceFrequency(&freq);
|
|
|
|
QeryPerformanceFrequency(&freq);
|
|
|
|
seconds = (double)tim / (double) freq;
|
|
|
|
seconds = (double)tim / (double)freq;
|
|
|
|
return(seconds);
|
|
|
|
return(seconds);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
struct timeval tt;
|
|
|
|
struct timeval tt;
|
|
|
|
|