wiki:mpich/MPI_Wtime

Version 1 (modified by wade, 16 years ago) (diff)

--

MPI_Wtime

Returns an elapsed time on the calling processor

Synopsis

  #include "mpi.h"
  double MPI_Wtime()

Return value

Time in seconds since an arbitrary time in the past.

Notes

This is intended to be a high-resolution, elapsed (or wall) clock. See MPI_WTICK to determine the resolution of MPI_WTIME. If the attribute MPI_WTIME_IS_GLOBAL is defined and true, then the value is synchronized across all processes in MPI_COMM_WORLD.