Skip to content

Commit eed60ac

Browse files
committed
fix compile error on windows-vs17
1 parent bcba0f8 commit eed60ac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

benchmarks/benchutil.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
#include <cstdio>
66

77
#if defined(__linux__) || (__APPLE__ && __aarch64__)
8-
#define USING_COUNTERS
9-
#include "counters/event_counter.h"
8+
#define USING_COUNTERS
9+
#include "counters/event_counter.h"
10+
#else
11+
#include <chrono>
1012
#endif
1113

1214
#ifdef USING_COUNTERS
@@ -96,7 +98,7 @@ void pretty_print(std::vector<double> &lines, std::string name,
9698
template <class T>
9799
std::pair<double, double> time_it_ns(std::vector<double> &lines,
98100
T const &function, size_t repeat) {
99-
std::chrono::high_resolution_clock::time_point t1, t2;
101+
typename std::chrono::high_resolution_clock::time_point t1, t2;
100102
double average = 0;
101103
double min_value = DBL_MAX;
102104
bool printed_bug = false;

0 commit comments

Comments
 (0)