Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clock_t begin = clock();
- cout << "Hello World" << endl; //Your code here,which you want to test by speed.
- clock_t end = clock();
- double elapsed_secs = double(end - begin) / CLOCKS_PER_SEC;
- cout << elapsed_secs << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement