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 (12 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (6)
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).