File: hook.pl

package info (click to toggle)
gprolog 1.5.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,912 kB
  • sloc: ansic: 57,412; perl: 18,500; sh: 3,677; makefile: 1,123; asm: 97
file content (12 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
% hook file for GNU Prolog

% Count is passed on the command line as the 1st argument

get_count(Count) :-
	argument_value(1, ACount),
	number_atom(Count, ACount).

get_cpu_time(T) :-
	statistics(runtime, [T, _]).

:- initialization(q).