Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_CommUtilities.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TEUCHOS_COMM_UTILTIES_HPP
11 #define TEUCHOS_COMM_UTILTIES_HPP
12 
13 #include "Teuchos_TimeMonitor.hpp"
14 
15 #ifdef HAVE_TEUCHOS_COMM_TIMERS
16 
17 #define TEUCHOS_COMM_TIME_MONITOR( FUNCNAME ) \
18  TEUCHOS_FUNC_TIME_MONITOR( FUNCNAME )
19 
20 #else // HAVE_TEUCHOS_COMM_TIMERS
21 
22 #define TEUCHOS_COMM_TIME_MONITOR( FUNCNAME )
23 
24 #endif // HAVE_TEUCHOS_COMM_TIMERS
25 
26 #endif // TEUCHOS_COMM_UTILTIES_HPP
Scope guard for Teuchos::Time, with MPI collective timer reporting.