The ball is on the ground whenever the height is 0:
\(-16t^2+64t=0\implies-16t(t-4)=0\implies t=0,t=4\)
Obviously, \(t=0\) is the time when the ball is thrown, so ignore that. It thus takes the ball \(t=4\) seconds to hit the ground after it's been launched.