The purpose of this paper is to establish some results about the convergence speed of the Riemann sums and to use them to give some properties related with Gamma function. A new proof of the Stirling's formula is given, then we pass to the continuous case, using the Croft's lemma.