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 (15 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% hook file for Wamcc

% Count is passed as the first argument
get_count(Count) :-
	unix(argv(L)),
	L = [ACount|_],
	name(ACount, LCodes),
	name(Count, LCodes).

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

:- main.
:- q, halt.