/** \file utility.cpp Benchmarking utilties * * Copyright 2007-2012 IMP Inventors. All rights reserved. */ #include #include IMPBENCHMARK_BEGIN_INTERNAL_NAMESPACE int current_benchmark=-1; std::string get_file_name(std::string suffix) { std::string exe= IMP::base::get_executable_name(); std::string exebase= IMP::base::internal::get_file_name(exe); std::ostringstream oss; oss << exebase << current_benchmark << suffix; return oss.str(); } IMPBENCHMARK_END_INTERNAL_NAMESPACE