Skip to content

Instantly share code, notes, and snippets.

@mitliagkas
Created December 16, 2014 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitliagkas/aa6139e5a13d5603dda5 to your computer and use it in GitHub Desktop.
Save mitliagkas/aa6139e5a13d5603dda5 to your computer and use it in GitHub Desktop.
#include <time.h>
clock_t start, end;
double elapsed;
start = clock();
... /* Do the work. */
end = clock();
elapsed = ((double) (end - start)) / CLOCKS_PER_SEC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment