How long you need at Sagrada Família depends less on the size of the building than on how much you want to notice. Around 90 minutes is enough for most visitors; two hours is better if you want the museum, plenty of photos or a tower. The official audioguide runs for about 45 minutes, the official guided tour takes around 50, and the Basilica gives tower tickets an approximate duration of 1 hour 30 minutes.
In a hurry, you can see the essential interior in about an hour. But at Sagrada Família rushing saves surprisingly little time and takes away much of the reason you came. Our advice is to put two hours in your itinerary and not to book your next timed sight straight afterwards. If you finish early, you have gained a coffee; if the interior stops you in your tracks, you won't have to leave just as it gets interesting.