Getting the Timing of a Specific Part of Code in a Loop in C
问题 Description of Problem Below I have a program that is performing two simple addition and multiplication operations. I am then storing the sum of these two simple operations in two respective variables called total1 and total2. In terms of computation total2 will take more time to be fully executed. The way I implemented the code, I am currently timing the entire simulation of both mathematical operations. Question Is it possible to time solely the end result of total1 and total 2 separately?