The clock frequency f counts how many clock cycles happen each second. It's measured in hertz (Hz), usually MHz (10⁶ Hz) or GHz (10⁹ Hz), and it's the reciprocal of the clock period:
f = 1 / T
Shortcut: f in MHz = 1000 ÷ (T in ns). A 4 ns period gives 250 MHz.
A higher frequency means more cycles per second, but it doesn't by itself mean a faster program. Execution time also depends on how many cycles each instruction needs:
time = instructions × CPI ÷ f
So a 2 GHz CPU needing 3 cycles per instruction can lose to a 1.5 GHz CPU needing 1.2. Comparing CPUs by clock speed alone is a classic mistake.
In hardware design, the highest usable frequency is the maximum clock frequency, set by the slowest register-to-register path.