/** \file utility.cpp Benchmarking utilties * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #include #include #include #include IMPBENCHMARK_BEGIN_NAMESPACE void report(std::string name, double value, double check) { if (value < 0) { IMP_WARN("Negative value passed: " << value << std::endl); value=0; } std::cout << boost::format("%s,%f,%e\n")%name % value % check; } IMPBENCHMARK_END_NAMESPACE