Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1.  
  2. clock_t begin = clock();
  3.  
  4. cout << "Hello World" << endl; //Your code here,which you want to test by speed.
  5.  
  6. clock_t end = clock();
  7. double elapsed_secs = double(end - begin) / CLOCKS_PER_SEC;
  8. cout << elapsed_secs << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement