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

Ask a homework question - tutors are online