MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_TimeMonitor.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// MueLu: A package for multigrid based preconditioning
4//
5// Copyright 2012 NTESS and the MueLu contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef MUELU_TIMEMONITOR_HPP
11#define MUELU_TIMEMONITOR_HPP
12
13#include <string>
14#include <Teuchos_DefaultComm.hpp>
15#include <Teuchos_TimeMonitor.hpp>
16#include "MueLu_ConfigDefs.hpp"
17#include "MueLu_BaseClass.hpp"
19
20namespace MueLu {
21
26class TimeMonitor : public BaseClass {
27 public:
28 TimeMonitor(const BaseClass& object, const std::string& msg, MsgType timerLevel = Timings0);
29
31
32 protected:
34
35 private:
36 RCP<Teuchos::TimeMonitor> timer_;
37 std::string label_;
38}; // class TimeMonitor
39
40} // namespace MueLu
41
42#endif // MUELU_TIMEMONITOR_HPP
Base class for MueLu classes.
RCP< Teuchos::TimeMonitor > timer_
TimeMonitor(const BaseClass &object, const std::string &msg, MsgType timerLevel=Timings0)
Namespace for MueLu classes and methods.
@ Timings0
High level timing information (use Teuchos::TimeMonitor::summarize() to print).