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:
parent
4dd8d80292
commit
bfbe5b448b
5 changed files with 34 additions and 9 deletions
|
|
@ -83,9 +83,10 @@ namespace spot
|
|||
/// \brief print the configured statistics.
|
||||
///
|
||||
/// The \a f argument is not needed if the Formula does not need
|
||||
/// to be output.
|
||||
/// to be output, and so is \a run_time).
|
||||
std::ostream&
|
||||
print(const tgba* aut, const ltl::formula* f = 0);
|
||||
print(const tgba* aut, const ltl::formula* f = 0,
|
||||
double run_time = -1.);
|
||||
|
||||
private:
|
||||
const char* format_;
|
||||
|
|
@ -99,6 +100,7 @@ namespace spot
|
|||
printable_value<unsigned> nondetstates_;
|
||||
printable_value<unsigned> deterministic_;
|
||||
printable_value<unsigned> complete_;
|
||||
printable_value<double> run_time_;
|
||||
};
|
||||
|
||||
/// @}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue