how to calculate clock cycle of an instruction