Timers are better than switches because you want the fan to run after the shower / bath to allow all the humidity to exhaust out. If its on a light switch you only get ventilation while you are in there.

Somewhere I read or was told it should be running for 30 minutes after you get out to bring the humidity back to normal.