It all depends if your flight arrive on time, check flightradar24/flightware to have an idea of the arrival time for your flight, but 2hs it to close, sometimes Customs/Immigration takes just 15 minutes or less, but you have to pick up your luggage which can take from 10 o 30 minutes, then you have drop your luggage (recheck) where the cut off time is 60 minutes before departure. What is more important, are both flight on the same reservation?.