Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. long int top_chrono;
  5.  
  6. void demarrer_chrono() {
  7. top_chrono = clock();
  8. }
  9.  
  10. void stop_chrono() {
  11. long int arret_chrono = clock();
  12. fprintf(stderr, "Le calcul a pris %f secondes.\n",
  13. (float)(arret_chrono - top_chrono) / CLOCKS_PER_SEC);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement