14 #ifndef ZOLTAN2_TIMERMANAGER_HPP
15 #define ZOLTAN2_TIMERMANAGER_HPP
19 #include <Teuchos_TimeMonitor.hpp>
31 RCP<const Comm<int> > comm_;
33 std::ofstream *fileOS_;
35 std::bitset<NUM_TIMING_OPTIONS> typeSelector_;
37 Array<RCP<Teuchos::Time> > timers_;
38 std::map<std::string, int> timerMap_;
45 TimerManager(
const RCP<
const Comm<int> > & comm, std::ofstream *of,
50 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.