Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Mar 5, 2018
1 parent 9c05e48 commit 5f0fa95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ double get_current_time()
time = ((uint64_t)file_time.dwLowDateTime ) ;
time += ((uint64_t)file_time.dwHighDateTime) << 32;

struct timeval tp;
struct timeval tv;

tp.tv_sec = (long) ((time - EPOCH) / 10000000L);
tp.tv_usec = (long) (system_time.wMilliseconds * 1000);
tv.tv_sec = (long) ((time - EPOCH) / 10000000L);
tv.tv_usec = (long) (system_time.wMilliseconds * 1000);

return tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0;
}
Expand Down

0 comments on commit 5f0fa95

Please sign in to comment.