3 Test if current interpreter do not have clock() and define it as need
5 Written by Broytman, Jul 1997. Copyright (C) 1997 PhiloSoft Design
14 print '\n' + " "*len("Testing...") + '\n',
16 need_clock = time.clock() <> 3
18 outfile = open("clock.py", 'w')
21 print "Generaing clock.py with custom clock()"
22 outfile.write("""\"\"\"
23 Define clock() for systems that do not have it
30 return int(time() - _clock)
33 print "Generaing clock.py with standard clock()"
34 outfile.write("""\"\"\"
38 from time import clock