endl notes about submission 1 this assignment

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: segment to compute the execution time of a code block. For these operations, you must include the ctime header file. // Store the starting time double duration; clock_t startTime = clock(); // Code block // … //Compute the number of milliseconds that passed since the starting time duration = 1000 * double( clock() - startTime ) / CLOCKS_PER_SEC; cout << "Execution took " << duration << " milliseconds." << endl...
View Full Document

This note was uploaded on 01/15/2014 for the course CS CS-201 taught by Professor Selimaksoy during the Fall '09 term at Bilkent University.

Ask a homework question - tutors are online