37#ifndef PFC_MPI_TIMER_HPP
38#define PFC_MPI_TIMER_HPP
50 double duration_ = 0.0;
51 std::string description_;
56 double duration()
const;
58 void description(
const std::string &);
59 std::string description()
const;
63inline void timer::reset() { duration_ = 0.0; }
65inline std::string timer::description()
const {
return description_; }
67inline void timer::description(
const std::string &description) {
68 description_ = description;
71inline std::ostream &operator<<(std::ostream &os,
const timer &t) {
72 os << t.description();
76inline void timer::tic() { tic_ = MPI_Wtime(); }
78inline double timer::toc() {
80 duration_ += toc_ - tic_;
Represents the global simulation domain (the "world").
Definition world.hpp:91