Skip to content

Commit e194d7d

Browse files
author
Daniel Kroening
committed
chrono
1 parent 1e6ce52 commit e194d7d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/ebmc/ebmc_base.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int ebmc_baset::finish_bmc(prop_convt &solver)
161161

162162
statistics()
163163
<< "Solver time: "
164-
<< std::chrono::duration<double>(current_time()-sat_start_time).count()
164+
<< std::chrono::duration<double>(sat_stop_time-sat_start_time).count()
165165
<< eom;
166166

167167
// We return '0' if the property holds,
@@ -198,9 +198,9 @@ int ebmc_baset::finish_bmc(const bmc_mapt &bmc_map, propt &solver)
198198
for(auto l : property.timeframe_literals)
199199
solver.set_frozen(l);
200200
}
201-
202-
absolute_timet sat_start_time=current_time();
203-
201+
202+
auto sat_start_time = std::chrono::steady_clock::now();
203+
204204
status() << "Solving with " << solver.solver_text() << eom;
205205

206206
for(propertyt &property : properties)
@@ -252,9 +252,13 @@ int ebmc_baset::finish_bmc(const bmc_mapt &bmc_map, propt &solver)
252252
return 1;
253253
}
254254
}
255+
256+
auto sat_stop_time = std::chrono::steady_clock::now();
255257

256-
statistics() << "Solver time: " << (current_time()-sat_start_time)
257-
<< eom;
258+
statistics()
259+
<< "Solver time: "
260+
<< std::chrono::duration<double>(sat_stop_time-sat_start_time).count()
261+
<< eom;
258262

259263
// We return '0' if the property holds,
260264
// and '10' if it is violated.

0 commit comments

Comments
 (0)