Changed time measuring to time.clock()