Running time measurement

#include <iostream>
#include <time.h>
using namespace std;
int main()
{
    clock_t start = clock();
    //Place your codes here...
    clock_t ends = clock();
    cout <<"Running Time : "<<(double)(ends - start)/ CLOCKS_PER_SEC << endl;
    return0;
}

Guess you like

Origin www.cnblogs.com/VividBinGo/p/11287477.html
Recommended