TIMESTAMP is a FORTRAN90 library which prints the current YMDHMS date (year-month-day-hours-minutes-seconds) 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 modification 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. See, for instance, the examples in TIMER
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
TIMER is a set of FORTRAN90 executable program which show how to compute the elapsed CPU time inside a program.
TIMESTAMP is also available in a C version and a C++ version and a FORTRAN77 version and a Mathematica version and a MATLAB version and a PERL version.
You can go up one level to the FORTRAN90 source codes.