Skip to content

Commit 40bda70

Browse files
committed
rust preliminary
1 parent 68420d1 commit 40bda70

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

boot_pl2nl.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
phrase(pl_source(S), `memb(E,[E|_]).`), writeln(S).
2323
*/
2424
testz_ :-
25-
tterm(c(.,[v('E'),v('_')]),[],T,X),
26-
writeln(X/T).
25+
tterm(c(.,[v('E'),v('_')]),[],T,Vs),
26+
writeln(Vs/T).
2727
testz :-
2828
%tterm(c(.,[v('E'),v('_')]),[],T,X),
2929
S=`memb(E,[E|_]).`,

laz/hhprolog.lpr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@ procedure test_alloc(pl_nl: string);
5353

5454
{$if 1}
5555
procedure test_run(pl_nl: string);
56+
var t0: DWORD;
5657
begin
5758
with Prog.create(file2string(pl_nl)) do
5859
begin
5960
ppCode;
61+
t0 := getTickCount64;
6062
run(true);
63+
writeln(format('%s: done in %d msec', [pl_nl, getTickCount64 - t0]));
6164
Free
6265
end;
6366
end;

0 commit comments

Comments
 (0)