9 #ifndef IMPBASE_STATISTICS_H
10 #define IMPBASE_STATISTICS_H
12 #include <IMP/base/base_config.h>
14 #include "internal/static.h"
16 #include <boost/timer.hpp>
18 IMPBASE_BEGIN_NAMESPACE
32 Timer(
const Object *
object, std::string operation) {
33 key_ =
object->get_name() +
"::" + operation;
35 Timer(std::string operation) { key_ = operation; }
37 internal::timings[key_].total_time += timer_.elapsed();
38 ++internal::timings[key_].calls;
void show_timings(TextOutput out)
Common base class for heavy weight IMP objects.
Handling of file input/output.