Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!uicsl!gooley From: gooley@uicsl.UUCP Newsgroups: net.lang.prolog Subject: Re: cputime in UNSW prolog? Message-ID: <70900002@uicsl> Date: Mon, 7-Jul-86 14:39:00 EDT Article-I.D.: uicsl.70900002 Posted: Mon Jul 7 14:39:00 1986 Date-Received: Thu, 10-Jul-86 01:49:33 EDT References: <177@cci632.UUCP> Lines: 11 Nf-ID: #R:cci632.UUCP:177:uicsl:70900002:000:595 Nf-From: uicsl.UUCP!gooley Jul 7 13:39:00 1986 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