time and report exception in riemann for functions