Sunday, August 4, 2013

Benchmark Code time

using this for C++ now:

#include <time.h>

double start = clock();
//Code Here
double time = (clock() - start)/ double(CLOCKS_PER_SEC)*1000; //Time in ms
std::cout << "Execution Time is: \t" << time << "ms" << std::endl;

No comments:

Post a Comment