Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > d1f06a5336fd6bf4a381b72b8d2b5ce1 > files > 101

gprolog-1.2.16-3mdk.ppc.rpm

% hook file for XSB Prolog

% Count is passed using command line argument -e 'assertz(count(Count)).'
get_count(Count) :-
	clause(count(Count),_).

get_cpu_time(T) :-
	cputime(X),
	T is floor(X*1000).

% no initialization, script executes q/0 after consult