If a security lock is enabled, you can set the delay time after the screen darkens due to inactivity before the screen automatically locks and requires you to enter your unlock sequence.
Tap the Home Button > touch and hold the Recent Apps Button > Lock screen settings.
Tap Security lock timer, then tap the setting you want to use.