2 """Test if current interpreter do not have clock() and define it as need"""
4 from __future__ import print_function
7 print("Testing...", end=' ')
11 print('\n' + " "*len("Testing...") + '\n', end=' ')
13 need_clock = time.clock() != 3 if hasattr(time, 'clock') else True
15 outfile = open("clock.py", 'w')
18 print("Generaing clock.py with custom clock()")
19 outfile.write("""\"\"\"
20 Define clock() for systems that do not have it
27 return int(time() - _clock)
30 print("Generaing clock.py with standard clock()")
31 outfile.write("""\"\"\"
35 from time import clock