Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetTickCount

Returns number of ms, passed from last OS start.

NB: Synonym for Timer

Pascal Syntax:

function GetTickCount : Cardinal;

Pascal Example:

function CheckWorldSave(lastTime : integer) : integer;
begin
	if (LastJournalMessage() = 'System: World save has been initiated.') then
	begin
		lastTime := GetTickCount() - lastTime;
		ClickOnObject(Backpack());
		WaitJournalLine(Now(), 'backpack', 25000);
		result := GetTickCount() + lastTime;
	end
	else
	begin
		result := lastTime;
	end;
end;

Python Syntax:

#method missing, pythn scripters using internal Python methods.