execution time

David Hláčik david at hlacik.eu
Sun Dec 14 17:03:38 CET 2008


Hi guys,

#! /usr/bin/python

import random
import bucket2

data = [ random.randint(1,25) for i in range(5)]
print "random data : %s" % data
print "result: %s" %bucket2.sort(data)

How to write a test script which will outputs execution time for
bucket2.sort(data) ?

Thanks in advance!



More information about the Python-list mailing list