For the quickest charge, connect iPhone or iPod touch to a power outlet using the USB cable that came with the device and a USB power adapter.
If using a portable computer, make sure it is plugged in to power and that the display (or lid) is open.
If the display is closed, the computer may go into standby, sleep, or hibernation mode and iPhone or iPod touch may not charge.