File: HOOK.pl

package info (click to toggle)
gprolog 1.4.5.0-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 7,924 kB
  • sloc: ansic: 55,584; perl: 18,501; sh: 3,401; makefile: 1,114; asm: 20
file content (13 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
% hook file for BinProlog

% Count is passed as a fact at the end of the source
get_count(Count) :-
	count(Count).

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

% no initialization, script executes q/0 after consult

main :-
	q.