Advertisement
alex1984vn

C count time

May 16th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include <time.h>
  2. clock_t start, end;
  3. start = clock();
  4. //-----------------
  5. end = clock();
  6. printf( "That took %d seconds", (end-start)/CLOCKS_PER_SEC);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement