jburkardt

TIMESTAMP\ Print a Timestamp {#timestamp-print-a-timestamp align=”center”} =================


TIMESTAMP is a C++ library which can print or return the current YMDHMS date as a timestamp.

This is useful when documenting the run of a program. By including a timestamp, the output of the program will always contain a clear indication of when it was created. Other indicators, such as the file timestamp, may be misleading or subject to unintentional modification.

TIMESTAMP simply gives the current time. If you are trying to do careful timings of the speed of execution of a computer code, this may not be very accurate, especially on a computer that uses timesharing. In that case, there are better solutions that measure just the CPU time associated with your process.

Licensing: {#licensing align=”center”}

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

Languages: {#languages align=”center”}

TIMESTAMP is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a JAVA version and a Mathematica version and a MATLAB version and a PYTHON version.

TIMER, a C++ library which can be used to measure elapsed CPU time, rather than elapsed real time.

WTIME, a C++ library which returns a reading of the wall clock time in seconds.

Source Code: {#source-code align=”center”}

Examples and Tests: {#examples-and-tests align=”center”}

List of Routines: {#list-of-routines align=”center”}

You can go up one level to the C++ source codes.


Last revised on 05 June 2011.