Last active
August 29, 2015 14:23
-
-
Save RDCH106/c4c3963254fa1c94c4e7 to your computer and use it in GitHub Desktop.
Execution Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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