Switching time measurement system