Skip to content

Instantly share code, notes, and snippets.

@RDCH106
Last active August 29, 2015 14:23
Show Gist options
  • Save RDCH106/c4c3963254fa1c94c4e7 to your computer and use it in GitHub Desktop.
Save RDCH106/c4c3963254fa1c94c4e7 to your computer and use it in GitHub Desktop.
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