As knowing the CPU frequency to determine the speed of function execution?

Hello!

A question. If I time the run function on your computer, the CPU frequency which is known to me. Then with this information, can I calculate the execution time of the function on another computer with a different frequency? The frequency of the other of the computer is known.
June 14th 19 at 20:43
2 answers
June 14th 19 at 20:45
Solution
No

Run the same function on another computer a few thousand times and get the average execution time
June 14th 19 at 20:47
No. Processor, runtime environment, constantly optimize the run time based on a heap of nuances, based on the predictions. Even on the same hardware, you can only talk about what the average, run at different times you can obtain a different result in 2-3.

Find more questions by tags C#