Browse Source

add timing info to storm-pomdp

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
3355b21b72
  1. 6
      src/storm-pomdp-cli/storm-pomdp.cpp

6
src/storm-pomdp-cli/storm-pomdp.cpp

@ -475,11 +475,17 @@ int main(const int argc, const char** argv) {
if (!optionsCorrect) { if (!optionsCorrect) {
return -1; return -1;
} }
storm::utility::Stopwatch totalTimer(true);
storm::cli::setUrgentOptions(); storm::cli::setUrgentOptions();
// Invoke storm-pomdp with obtained settings // Invoke storm-pomdp with obtained settings
storm::pomdp::cli::processOptions(); storm::pomdp::cli::processOptions();
totalTimer.stop();
if (storm::settings::getModule<storm::settings::modules::ResourceSettings>().isPrintTimeAndMemorySet()) {
storm::cli::printTimeAndMemoryStatistics(totalTimer.getTimeInMilliseconds());
}
// All operations have now been performed, so we clean up everything and terminate. // All operations have now been performed, so we clean up everything and terminate.
storm::utility::cleanUp(); storm::utility::cleanUp();
return 0; return 0;

Loading…
Cancel
Save