A ball is thrown in the air from the top of a building. Its height, in meters above ground, as a function of time, in seconds, is given by

h(t) = −4.9t2 + 12t + 10.

How long does it take to reach maximum height? (Round your answer to three decimal places.)