This is an example of how to use the Teuchos::TimeMonitor class.
#include "Teuchos_Version.hpp"
#ifdef HAVE_MPI
#include <mpi.h>
#endif
{
std::cout << Teuchos::Teuchos_Version() << std::endl << std::endl;
double x;
#ifdef HAVE_MPI
#endif
for(
i=-100;
i<100;
i++ ) {
}
}
TimeMonitor::summarize();
#ifdef HAVE_MPI
#endif
return 0;
}
{
return ( x*x - 1.0 );
}
{
if( x == 0 ) return 0.0;
if( x == 1 ) return 1.0;
}
Scope guard for Teuchos::Time, with MPI collective timer reporting.
Smart reference counting pointer class for automatic garbage collection.
Scope guard for Time, that can compute MPI collective timer statistics.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...