stats: add %r to display run-time

* src/tgbaalgos/stats.cc, src/tgbaalgos/stats.hh: Add
support for printing run-time.
* src/bin/ltl2tgba.cc, src/bin/dstar2tgba.cc: Compute
the run-time and show the option.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2013-08-21 16:30:26 +02:00
parent 4dd8d80292
commit bfbe5b448b
5 changed files with 34 additions and 9 deletions

View file

@ -148,6 +148,7 @@ namespace spot
declare('f', &form_);
declare('n', &nondetstates_);
declare('p', &complete_);
declare('r', &run_time_);
declare('s', &states_);
declare('S', &scc_); // Historical. Deprecated. Use %c instead.
declare('t', &trans_);
@ -157,9 +158,11 @@ namespace spot
std::ostream&
stat_printer::print(const tgba* aut,
const ltl::formula* f)
const ltl::formula* f,
double run_time)
{
form_ = f;
run_time_ = run_time;
if (has('t'))
{