How is switching speed measured?

Switching speed is typically measured in nanoseconds (ns), which is one billionth of a second. It is the time it takes for a switch to open or close a circuit.