#include<time.h>
clock_t start = clock();
/*
your code
*/
clock_t end = clock();
double time = (double) (end-start) / CLOCKS_PER_SEC * 1000.0;
cout<<time<<endl;
clock_t start = clock();
/*
your code
*/
clock_t end = clock();
double time = (double) (end-start) / CLOCKS_PER_SEC * 1000.0;
cout<<time<<endl;
No comments:
Post a Comment