EZSwitch is a Mac status bar application which allows you to shutdown, restart or put your Mac(OSX Snow Leopard or above) to sleep with a user configurable delay time.
For example, if the delay time is configured as 10 seconds and the user initiates a sleep, within the ten seconds the user can change his mind and cancel the sleep or change the operation to a shutdown or a restart.
The delay also provides the user the opportunity to exit their computer desk without accidentally waking up the computer through the keyboard or mouse.