|
|
||
|
|
||
function indexMPI_WtickReturns the resolution of MPI_Wtimedouble MPI_Wtick( void ); Return valueTime in seconds of resolution of MPI_Wtime.
RemarksMPI_WTICK returns the resolution of MPI_WTIME in seconds. That is, it
returns, as a double precision value, the number of seconds between
successive clock ticks. For example, if the clock is implemented by the
hardware as a counter that is incremented every millisecond, the value
returned by MPI_WTICK should be Notes for FortranThis is a function, declared as DOUBLE PRECISION MPI_WTICK() in Fortran.
See Alsoalso: MPI_Wtime, MPI_Comm_get_attr, MPI_Attr_getExample CodeThe following sample code illustrates MPI_Wtick. #include "mpi.h"#include <stdio.h> int main( int argc, char *argv[] ) { double tick; MPI_Init( 0, 0 ); tick = MPI_Wtick(); printf("A single MPI tick is %0.9f seconds\n", tick); fflush(stdout); MPI_Finalize( ); return 0; } |
||