misc/timer: Gather handling of %r and %R options
* bin/autcross.cc: Update. * bin/autfilt.cc: Update. * bin/common_aoutput.cc: Gather them. Move process_timer struct. * bin/common_aoutput.hh: Gather them. * bin/common_output.hh: Update. * bin/dstar2tgba.cc: Update. * bin/ltl2tgba.cc: Update. * bin/ltlcross.cc: Update. * bin/ltldo.cc: Update. * bin/ltlfilt.cc: Update. * bin/randaut.cc: Update. * spot/misc/formater.hh: Remove an useless function. * spot/misc/timer.hh: Add process_timer struct definition. * spot/misc/timer.cc: Remove old dead code. * spot/twaalgos/stats.cc: Update. * spot/twaalgos/stats.hh: Update.
This commit is contained in:
parent
302095ff9e
commit
ad9bc644ba
16 changed files with 89 additions and 81 deletions
|
|
@ -52,6 +52,7 @@
|
|||
#include <spot/twaalgos/remfin.hh>
|
||||
#include <spot/twaalgos/product.hh>
|
||||
#include <spot/misc/escape.hh>
|
||||
#include <spot/misc/timer.hh>
|
||||
|
||||
const char argp_program_doc[] ="\
|
||||
Call several tools that process automata and cross-compare their output \
|
||||
|
|
@ -377,7 +378,7 @@ namespace
|
|||
std::string cmd = command.str();
|
||||
std::cerr << "Running [" << l << tool_num << "]: "
|
||||
<< cmd << std::endl;
|
||||
process_timer timer;
|
||||
spot::process_timer timer;
|
||||
timer.start();
|
||||
int es = exec_with_timeout(cmd.c_str());
|
||||
timer.stop();
|
||||
|
|
@ -459,7 +460,7 @@ namespace
|
|||
|
||||
stats.status_str = status_str;
|
||||
stats.status_code = es;
|
||||
stats.time = timer.get_lap_sw();
|
||||
stats.time = timer.walltime();
|
||||
if (res)
|
||||
{
|
||||
stats.ok = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue