timer_test, a Python code which examines methods for computing the elapsed CPU time of a part of a calculation.
In Python, CPU time can be read using the clock() function from the time module:
from time import clock t1 = clock ( ) carry out operations to be timed t2 = clock ( ) - t1 print 'Operations completed after %g seconds' % ( t2 )
timer_test is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.
TIMESTAMP, a Python code which displays the current wall clock time.
WTIME, a Python code which returns a reading of the wall clock time in seconds.