import time debut_temps = time.perf_counter() for i in range(1000): def factorial(n): if n==0: return 1 else: return n*factorial(n-1) m = 100 print(100,"!=",factorial(m),sep="") fin_temps = time.perf_counter() duree = 1000 * ( fin_temps - debut_temps) print("Temps d execution",duree, "millisecondes")