On 04/23/2015 02:32 AM, Eyal Dechter wrote:
> Ok, thanks, I guess the number inferences per second is stable enough to
> allow for rough time limits.
It depends what you are doing. If you run plain Prolog code, inference
number gives, as Markus claims, a nicely reproducible limit. If your code
contains network interaction or other expensive operations (largely)
written in C, a wall time limit is typically to be preferred.
call_with_time_limit/2 is written on top of the alarm primitives. You
can surely write a version that will re-inforce the limit on backtracking.
See time/1 for code that times backtrackable goals.
Cheers --- Jan
> <mailto:
swi-prolog+...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.