Skip to content

do not round reported durations to seconds #1870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/cbmc/all_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ safety_checkert::resultt bmc_all_propertiest::operator()()

solver.set_message_handler(get_message_handler());

auto now = std::chrono::steady_clock::now();
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
auto solver_start=std::chrono::steady_clock::now();

bmc.do_conversion();

Expand Down Expand Up @@ -133,10 +132,10 @@ safety_checkert::resultt bmc_all_propertiest::operator()()
}

{
now = std::chrono::steady_clock::now();
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
auto solver_stop = std::chrono::steady_clock::now();

status() << "Runtime decision procedure: " << (sat_stop - sat_start).count()
status() << "Runtime decision procedure: "
<< std::chrono::duration<double>(solver_stop-solver_start).count()
<< "s" << eom;
}

Expand Down
9 changes: 4 additions & 5 deletions src/cbmc/bmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ bmct::run_decision_procedure(prop_convt &prop_conv)

prop_conv.set_message_handler(get_message_handler());

auto now = std::chrono::steady_clock::now();
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
auto solver_start = std::chrono::steady_clock::now();

do_conversion();

Expand All @@ -169,9 +168,9 @@ bmct::run_decision_procedure(prop_convt &prop_conv)
decision_proceduret::resultt dec_result=prop_conv.dec_solve();

{
now = std::chrono::steady_clock::now();
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
status() << "Runtime decision procedure: " << (sat_stop - sat_start).count()
auto solver_stop = std::chrono::steady_clock::now();
status() << "Runtime decision procedure: "
<< std::chrono::duration<double>(solver_start-solver_stop).count()
<< "s" << eom;
}

Expand Down
9 changes: 4 additions & 5 deletions src/cbmc/bmc_cover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ bool bmc_covert::operator()()

solver.set_message_handler(get_message_handler());

auto now = std::chrono::steady_clock::now();
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
auto solver_start=std::chrono::steady_clock::now();

// Collect _all_ goals in `goal_map'.
// This maps property IDs to 'goalt'
Expand Down Expand Up @@ -256,9 +255,9 @@ bool bmc_covert::operator()()
cover_goals();

{
now = std::chrono::steady_clock::now();
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
status() << "Runtime decision procedure: " << (sat_stop - sat_start).count()
auto solver_stop=std::chrono::steady_clock::now();
status() << "Runtime decision procedure: "
<< std::chrono::duration<double>(solver_stop-solver_start).count()
<< "s" << eom;
}

Expand Down
9 changes: 4 additions & 5 deletions src/cbmc/fault_localization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ fault_localizationt::run_decision_procedure(prop_convt &prop_conv)

prop_conv.set_message_handler(bmc.get_message_handler());

auto now = std::chrono::steady_clock::now();
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
auto solver_start=std::chrono::steady_clock::now();

bmc.do_conversion();

Expand All @@ -260,9 +259,9 @@ fault_localizationt::run_decision_procedure(prop_convt &prop_conv)
// output runtime

{
now = std::chrono::steady_clock::now();
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
status() << "Runtime decision procedure: " << (sat_stop - sat_start).count()
auto solver_stop=std::chrono::steady_clock::now();
status() << "Runtime decision procedure: "
<< std::chrono::duration<double>(solver_stop-solver_start).count()
<< "s" << eom;
}

Expand Down