Skip to content

Instantly share code, notes, and snippets.

@psycharo-zz
Created June 19, 2013 17:59
Show Gist options
  • Save psycharo-zz/5816402 to your computer and use it in GitHub Desktop.
Save psycharo-zz/5816402 to your computer and use it in GitHub Desktop.
get the execution time in seconds
#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