A ball is thrown upwards with an initial velocity v0 from the surface of the earth. The motion of the ball is affected by a drag force equal to mγv2 (where, m is mass of the ball, v is its instantaneous velocity and γ is constant). Time taken by the ball to rise to its maximum height is