I'm looking a way to get the time execution of a predicate in seconds, using swi-prolog. I found the time(X)
who brings me this information and much more, but what I need is only the time in seconds, wath I would like to write after run the predicate.
There is a way to do that?
statistics/2
: Measure the time difference before and after calling the goal. – mat?- profile(your_predicate).
then enjoy the graphical interface... – CapelliCstatistics(runtime,[Start_ms,Last_ms])
works the same way as in SICStus, YAP, B, GNU. – false