$\rm CPU~Time= \dfrac{Instruction~Count \times CPI}{Clock~Rate}$
$\rm CPU~Time = Instruction~Count \times CPI \times Clock~Cycle~Time$
Instruction Count is determined by: Software, Compiler, ISA
CPI: Microarchitecture
Clock Rate: Hardware