Dann halt
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
lol,lol2: Int64;
v: Integer;
i: Integer;
begin
QueryPerformanceCounter(lol);
For i := 1 To 100000 Do
begin
x(v);
end;
QueryPerformanceCounter(lol2);
Label1.Caption := IntToStr(lol2-lol);
QueryPerformanceCounter(lol);
For i := 1 To 100000 Do
begin
v := y;
end;
QueryPerformanceCounter(lol2);
Label2.Caption := IntToStr(lol2-lol);
end;
Funktion is bei mir schneller