How are you defining "turning off"? There's a difference between turning the screen off (i.e. going into standby mode) and turning the phone off by holding the power button down and selecting power off.
If your phone has been powered off (and it take a minute or two to boot back up) then it was off completely. If it was on standby then just the screen was off and the processor runs at a slower speed to save power.