$$ \frac{dv}{dt} = -\frac{GM}{x^2} $$
$$\Rightarrow v\frac{dv}{dx} = -\frac{GM}{x^2} $$
$$\Rightarrow \int^v_0 vdv = -\int^r_R \frac{GM}{x^2} dx$$
Solve this, then get an expression of velocity in terms of x, then express $v = \frac{dx}{dt} $, Integrate the expression. I would get an expression for t, that's it.