Commit 23c9e2ed authored by Jim Fulton's avatar Jim Fulton

*** empty log message ***

parent 9e482b3a
......@@ -130,11 +130,12 @@ Examples
s
$Id: Test.py,v 1.22 1998/09/21 23:50:01 jim Exp $
$Id: Test.py,v 1.23 1998/09/21 23:53:13 jim Exp $
'''
__version__='$Revision: 1.22 $'[11:-2]
__version__='$Revision: 1.23 $'[11:-2]
import sys, traceback, profile, os, getopt, string, time
import sys, traceback, profile, os, getopt, string
from time import clock
repeat_count=100
def main():
......@@ -181,10 +182,10 @@ def main():
def time(function,*args,**kwargs):
repeat_range=range(repeat_count)
apply(function,args,kwargs)
t=time.clock()
t=clock()
for i in repeat_range:
apply(function,args,kwargs)
t=(time.clock()-t)/1000.0
t=(clock()-t)/1000.0
return float(t)/len(repeat_range)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment