During layover if you do not leave the airport then you can directly catch the next flight. But if you decide to leave the airport and go out then when you again want to enter into airport then you have to go through all the security check and sometimes custom and immigration check which will take roughly 2–3 hours.