File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
#include < iostream>
24
24
#include < fstream>
25
+ #include < iterator>
25
26
#include < vector>
26
27
#include < map>
27
28
#include < chrono>
@@ -68,9 +69,9 @@ void test_one(const char *filename, FuzzProc fp)
68
69
std::copy (Iter (f), Iter (), std::back_inserter (v));
69
70
if (verbose)
70
71
std::cout << " File '" << filename << " ' contains " << v.size () << " entries" << std::endl;
71
- const auto start_time = std::chrono::steady_clock ::now ();
72
+ const auto start_time = std::chrono::high_resolution_clock ::now ();
72
73
int ret = fp (v.data (), v.size ());
73
- const auto finish_time = std::chrono::steady_clock ::now ();
74
+ const auto finish_time = std::chrono::high_resolution_clock ::now ();
74
75
if (ret != 0 )
75
76
std::cerr << " ## Failure code: " << ret << std::endl;
76
77
if (verbose)
You can’t perform that action at this time.
0 commit comments