1: \begin{abstract}
2: Let
3: $G=\SL(2,\R)\ltimes \R^2$ and $\Gamma=\SL(2,\Z)\ltimes \Z^2$.
4: Building on recent work of Str\"ombergsson we prove a rate of equidistribution for the orbits of a
5: certain
6: $1$-dimensional unipotent flow
7: of $\Gamma\quot G$, which projects
8: to a closed horocycle in the unit tangent bundle to the modular surface.
9: We use this to answer a question of
10: Elkies and McMullen by making effective the
11: convergence of the gap distribution of $\sqrt n \imod 1$.
12: \end{abstract}
13: