30 minutes in a healthy 172, I know from bitter experience, never did that again. The only thing on was the gyros.
Engineering was closed but luckily the airfield bum handswung it for me and insisted on charging me $1. I didn't think he would be able to do it and I gave him $10 when he did. What a hero.
Its one argument to hardwire the beacon on with the master switch.