Skip to content

Instantly share code, notes, and snippets.

@RDCH106 RDCH106/execution_time.cpp
Last active Aug 29, 2015

Embed
What would you like to do?
Execution Time
#include <iostream>
#include <ctime>
unsigned t0, t1;
t0=clock()
// Code to execute
t1 = clock();
double time = (double(t1-t0)/CLOCKS_PER_SEC);
cout << "Execution Time: " << time << endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.