This PR adds the new info `:time` that can be queried with `(get-info :time)` and returns the spent CPU time (as returned by `std::clock()`.
@pjljvandelaar
Fixes CVC4/CVC4-projects#102
if (key == "all-statistics" || key == "error-behavior" || key == "name"
|| key == "version" || key == "authors" || key == "status"
|| key == "reason-unknown" || key == "assertion-stack-levels"
- || key == "all-options")
+ || key == "all-options" || key == "time")
{
return true;
}
default: return SExpr(SExpr::Keyword("unknown"));
}
}
+ if (key == "time")
+ {
+ return SExpr(std::clock());
+ }
if (key == "reason-unknown")
{
Result status = d_state->getStatus();