50 #ifndef ZOLTAN2_TIMERMANAGER_HPP
51 #define ZOLTAN2_TIMERMANAGER_HPP
55 #include <Teuchos_TimeMonitor.hpp>
67 RCP<const Comm<int> > comm_;
69 std::ofstream *fileOS_;
71 std::bitset<NUM_TIMING_OPTIONS> typeSelector_;
73 Array<RCP<Teuchos::Time> > timers_;
74 std::map<std::string, int> timerMap_;
81 TimerManager(
const RCP<
const Comm<int> > & comm, std::ofstream *of,
86 TimerManager(
const RCP<
const Comm<int> > & comm, std::ostream *os,
~TimerManager()
Destructor.
Defines Parameter related enumerators, declares functions.
TimerType
The type of timers which should be active.
void print() const
Print out global summary, do not reset timers.
TimerManager(const RCP< const Comm< int > > &comm, std::ofstream *of, TimerType tt)
Constructor for output to a file.
void printAndResetToZero()
Print out global summary of timers and reset timers to zero.
Gathering definitions used in software development.
void stop(TimerType tt, const std::string &name)
Stop the named timer.
void start(TimerType tt, const std::string &name)
Start the named timer.