drama22
asked on
delphi prevent click fast
i have this function that detect fast click
this function uses GetTickCount i want to use Tstopwatch instead any one can convert this function to Tstopwatch ?
function IsFlood:Boolean;
var
i, x : integer;
begin
Result := False;
i := trunc(GetTickCount/2);
x := trunc((i - LastFloodTime)/4);
Result := False;
if x < 180 then Result := True;
LastFloodTime := i;
end;
this function uses GetTickCount i want to use Tstopwatch instead any one can convert this function to Tstopwatch ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER