Less than half an hour usually. More important is to ensure all your papers are in order, otherwise immigration will be asking you a lot of questions.
And when in doubt, declare any important items at Customs. I normally would declare a laptop and mobile, just in case. Also any other electronic media that can later be mis-construed as "sensitive" information. But that's just me, being paranoid.