]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
add missing header
authorKonstantinos Margaritis <markos@freevec.org>
Thu, 2 Sep 2021 12:35:23 +0000 (15:35 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
benchmarks/shufti.cpp
benchmarks/truffle.cpp

index d154068544f53785008d8b58671d1d56f43486e6..45390b0df5f45cf4e593eae9dbdd21bf61301e9e 100644 (file)
@@ -2,7 +2,9 @@
 #include "benchmarks.hpp"
 #include <iostream>
 #include <chrono>
-#include <time.h>
+#include <cstring>
+#include <ctime>
+
 /*
 #define RST  "\x1B[0m"
 #define KRED  "\x1B[31m"
index 44f393c93b5e5e7b1c0e50befb4da0be44381f79..abcecdb134ba9e1cc88a4041b6976a417dc1180a 100644 (file)
@@ -2,7 +2,9 @@
 #include "benchmarks.hpp"
 #include <iostream>
 #include <chrono>
-#include <time.h>
+#include <cstring>
+#include <ctime>
+
 /*
 #define RST  "\x1B[0m"
 #define KRED  "\x1B[31m"
@@ -84,4 +86,4 @@ void rtruffle_benchmarks(int size, int loops, int M, bool has_match) {
         std::cout<<"\x1B[35m Case with no match in random pos and size: "<<size<<" for "<<loops<<" loops:"<<"\x1B[36m rtruffleExec elapsetime: \x1B[0m"<<total_sec<<"\x1B[36m bandwidth: \x1B[0m"<<(size/total_sec)<<std::endl;
     }
     delete [] kt1;
-}
\ No newline at end of file
+}