import time debut = time.clock() ... fin = time.clock() print fin - debut