Browse Source

corrected reference to wrong settings module

Former-commit-id: 2f35b2dc82
tempestpy_adaptions
dehnert 9 years ago
parent
commit
7ab88457a7
  1. 13
      src/storm.cpp

13
src/storm.cpp

@ -6,6 +6,7 @@
#include "src/utility/initialize.h"
#include "src/settings/SettingsManager.h"
#include "src/settings/modules/GeneralSettings.h"
/*!
* Main entry point of the executable storm.
@ -13,7 +14,7 @@
int main(const int argc, const char** argv) {
try {
auto starttime = std::chrono::high_resolution_clock::now();
auto start = std::chrono::high_resolution_clock::now();
storm::utility::setUp();
storm::cli::printHeader("Storm", argc, argv);
storm::settings::initializeAll("Storm", "storm");
@ -27,11 +28,11 @@ int main(const int argc, const char** argv) {
// All operations have now been performed, so we clean up everything and terminate.
storm::utility::cleanUp();
auto endtime = std::chrono::high_resolution_clock::now();
auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(endtime-starttime);
auto durationSec = std::chrono::duration_cast<std::chrono::seconds>(endtime-starttime);
if(storm::settings::getModule<storm::settings::modules::IOSettings>().isPrintTimingsSet()) {
std::cout << "Overal runtime: " << duration.count() << " ms. ( approx " << durationSec.count() << " seconds)." << std::endl;
auto end = std::chrono::high_resolution_clock::now();
auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
auto durationSec = std::chrono::duration_cast<std::chrono::seconds>(end - start);
if(storm::settings::getModule<storm::settings::modules::GeneralSettings>().isPrintTimingsSet()) {
std::cout << "Overal runtime: " << duration.count() << " ms. (approximately " << durationSec.count() << " seconds)." << std::endl;
}
return 0;
} catch (storm::exceptions::BaseException const& exception) {

Loading…
Cancel
Save