walltime_c.h File Reference

Go to the source code of this file.

Functions

double wallTime (void)


Detailed Description

Functionality for reading wall clock time

Copyright (C) 2010 Max-Planck-Society

Author:
Martin Reinecke

Definition in file walltime_c.h.


Function Documentation

double wallTime ( void   ) 

Returns an approximation of the current wall time (in seconds). The first available of the following timers will be used:

  • omp_get_wtime(), if OpenMP is available
  • MPI_Wtime(), if MPI is available
  • gettimeofday() otherwise
Note:
Only useful for measuring time differences.

This function has an execution time between 10 and 100 nanoseconds.

Definition at line 43 of file walltime_c.c.


Generated on Thu Oct 8 14:48:49 2015 for LevelS C support library