TIMER
Compute Elapsed Time


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 )
      

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

TIMER is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

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.

Source Code:

Examples and Tests:

You can go up one level to the PYTHON source codes.


Last revised on 13 May 2013.