how to calculate cpi, mips and execution time