class c_clase { public: void timer(char *title=0,int data_size=1){ stop_time= chrono::system_clock::now();double us=(double) chrono::duration_cast<chrono::microseconds>(stop_time - start_time).count(); if (title) printf("%s time = %7lgms = %7lg MOPs\n",title,(double) us*1e-3, (double)data_size/us); start_time= chrono::system_clock::now(); } private: std::chrono::time_point<std::chrono::system_clock> start_time,stop_time; };
std::chrono::system_clock::time_point
std::chrono::time_point<std::chrono::system_clock>
Quote:Also tried: std::chrono::time_point<std::chrono::system_clock> start_time,stop_time; But link errors appeared
null_char
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)