#以下两条放程序开头
from time import clock
start=clock()

#以下两条放结尾
end=clock()
print(“您的程序运行了”,end-start,”秒”)