Power Switch Timer

You know how with the Playstation systems, when you tap the button it resets, and when you hold it down it goes into stand by?

Is there something like this for PC? I'd like to be able to customize the timing and function of my power button.

#453633