[net.lang.prolog] cputime in UNSW prolog?

rb@cci632.UUCP (Rex Ballard) (07/03/86)

OK, I've got some of those nifty little benchmarks, that
were posted to the net.  Unfortunately, they all want
cputime, which doesn't seem to exist in UNSW prolog,
nor do any other similar timing features.

I also was wandering if it was possible to instatiate the
stdout from a system call (as a list of atoms or something?).

I'd like to see what UNSW does on a 6/32.

gooley@uicsl.UUCP (07/07/86)

UNSW has an undocumented predicate, "time." Give the interpreter the
command		time!		and all future queries will be executed
(if I recall correctly) 100 times, followed by the time this took,
the number of calls to "unify," and the "number of procedure calls executed
per second."  Yeah, it's not as good as having a real "cputime."  I wonder
if the "system" or "sh" predicates could be used to call a system timer;
barring that, the UNSW source is modular, if poorly commented, and one could
probably hack it a bit.

Mark Gooley, CSG,CSL,UIUC. (seismo;ihnp4;pur-ee;convex)!uiucdcs!uicsl!gooley