Skip to content
Snippets Groups Projects
Commit b9559ac7 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Fix usage of _MSC_VER macro. WIN32 is correct

The enclosed code depends on OS, not compiler.
parent d7140b66
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ class RunTime
#if defined(USE_MPI)
_start_time = MPI_Wtime();
#else
#ifndef _MSC_VER
#ifndef WIN32
timeval t;
gettimeofday(&t, nullptr);
_start_time = t.tv_sec + t.tv_usec/1000000.0;
......@@ -54,7 +54,7 @@ class RunTime
#if defined(USE_MPI)
return MPI_Wtime() - _start_time;
#else
#ifndef _MSC_VER
#ifndef WIN32
timeval t;
gettimeofday(&t, nullptr);
return t.tv_sec + t.tv_usec/1000000.0 - _start_time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment