CCM time routine
Returns a time relative to some time in the past.
Minumal calling sequence:
Returned value is double precision.
Call with all Optional Arguments:
See Specifying Optional Arguments for the syntax for using optional arguments.
Time will not roll over for the duration of the program. Ccm_time is designed to be
an easy to use routine, but might not provide the most accurate clock available on a
system. The reference implementation is based on the Fortran 90 Date_and_time routine
and thus has a resolution of 0.001 seconds. It returns the number of seconds since
the beginning of the year in which the program was started and will handle running
over December 31 to January 1 correctly.
double precision :: t1,t2
write(*,*)" t= ",t1
Example output on 4 processors
[ccm_home:~/ccm/source] % ccm_time_x1
The call to ccm_init initializes the communication package. Each task
obtaines and prints a time. The program waits at the barrier for
2 seconds then gets and prints the time difference. Ccm_close is called to close
Back to API and user's guide