Calculating Total Number of Program Instructions?
So If a Program Take 5.7 Seconds to Execute on a Processor with the Clock Frequency of 1.8 Ghz Where Each Instruction Take 7 Clock Cycles, What's the Total...
So if a program take 5.7 seconds to execute on a processor with the clock frequency of 1.8 GHz where each instruction take 7 clock cycles, what's the total amount of instructions of the program?
I though I could calculate it like this:
Total number of clock cycles = 5.7 seconds * 1.8 GHz = 10,260,000,000 cycles. Then divide total number of cycles with number of cycles per instructions: 10,260,000,000 / 7 we get 1,466,428,571
But apparently this is wrong? It's part of a quiz and I got this question wrong, wonder why that is?