How long does it take for iphone 4 to unlock?

I had a boy unlock it for me its a atnt he said it should take anywere from a hour to 24 hours will it atomaticly start working or do i have to reset it an how will i be able to

Its unlocked as soon as you restore the iphone in itunes.
it can't be unlocked by some boy, only the original carrier can unlock it.

I'm not sure what method of unlocking is that boy going to use. There are many unsafe methods of unlocking. So i suggest to get your iPhone unlocked by yourself. It is very simple to do using remote unlocking service. You can get the remote unlocking service for an iPhone 4 from http://www.superunlockcodes.com/apple-iphone-4/rs16wp9/ at affordable cost with free unlocking instructions. This method of unlocking doesn't require a jailbreak too. All the best mate.

Normally with those factory or remote unlocking service, as soon as the unlock is done on their end (usually they let you know) you have to connect it to iTunes and do a backup and restore it with a non-ATT sim card and that will finish the unlock process.