Advertisement
Benlahbib_Abdessamad

Untitled

May 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <time.h> //Ne pas oublier d'inclure le fichier time.h
  2.  
  3. int main()
  4. {
  5.  
  6. clock_t start = clock();
  7.  
  8.  
  9.     // Execuatable code
  10.  
  11.  
  12. clock_t stop = clock();
  13. double elapsed = (double)(stop - start) * 1000.0  / CLOCKS_PER_SEC;
  14. printf("Time elapsed in ms: %f \n", elapsed);
  15.  
  16. system("PAUSE");
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement