WTIME is a PYTHON library 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 )
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
TIMER 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 library which displays the current wall clock time.
WTIME, a PYTHON library which returns a reading of the wall clock time in seconds.
You can go up one level to the PYTHON source codes.