The time average of a quantity $Q(t)$ over a time interval $T$ is $$\langle Q \rangle=\frac{1}{T}\int_0^TQ(t)\,dt.$$ For periodic motion, integrate over one period. For Keplerian orbits, it is usually helpful to change the integration variable to the angular coordinate $\psi$.