This commit is contained in:
2016-11-25 19:31:00 -08:00
commit 001a46260a
73 changed files with 8363 additions and 0 deletions

8
lab2/util.hpp Normal file
View File

@@ -0,0 +1,8 @@
struct timer{
std::chrono::high_resolution_clock::time_point t1;
std::chrono::high_resolution_clock::time_point t2;
void start(){t1 = std::chrono::high_resolution_clock::now();}
void end(){t2 = std::chrono::high_resolution_clock::now();}
double duration(){ return std::chrono::duration_cast<std::chrono::microseconds>( t2 - t1 ).count();}
};