61 const int rtn = someFunction();
67 using namespace Teuchos;
72 std::ostringstream out1, out2;
73 const std::string filter =
"";
78 bool test1 = (out1.str().find(
"someFunction1 0.0000 (0)") != std::string::npos);
82 out2 << std::scientific;
84 bool test2 = (out2.str().find(
"someFunction1 0.0000e+00 (0)") != std::string::npos);
#define TEUCHOS_FUNC_TIME_MONITOR(FUNCNAME)
Defines a timer for a specific function.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
Scope protection wrapper for Teuchos::Time, with timer reporting functionality.
static void zeroOutTimers()
Reset all global timers to zero.
static void report(Ptr< const Comm< int > > comm, std::ostream &out, const std::string &filter, const RCP< ParameterList > ¶ms=null)
Report timer statistics to the given output stream.
#define TEUCHOS_FUNC_TIME_MONITOR_DIFF(FUNCNAME, DIFF)
Defines a timer for a specific function (with differentiator).