Of course there’s no straight answer, but probably at least two hours. With so much on offer though, you could easily spend a whole day admiring the MoMA collection.
For anyone short on time, it's recommended to start on the fifth floor and work your way down using the museum's audio playlist – this will let you see the collection's top highlights quickly and efficiently.