Created
June 19, 2013 17:59
-
-
Save psycharo-zz/5816402 to your computer and use it in GitHub Desktop.
get the execution time in seconds
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 <ctime> | |
clock_t startTime = clock(); | |
// funciton here | |
cout << double(clock() - startTime) / CLOCKS_PER_SEC << endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment