For a project, I have to measure the runtime of basic primitive operations in C ++ for the machine I use. It says the following:
Write a program that determines the values ββof the synchronization parameters ( fetch , store, + , - , * , / , < , function call, function return, new , delete and [] ) for the machine on which it is running.
fetch and store :
a = b + 1
b and 1 βextractedβ (and added along with + ) and stored in a .
I had never done anything like this before. Do I need to use the clock method to calculate uptime? Should the code I'm setting be complicated or simple? How many times should it be evaluated?
source share