ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getTickCount

Function

getTickCount

Server and clientMiscellaneousIdentical to MTA:SA

Returns the number of milliseconds since start (a clock that does not go back when the system time changes). For measuring intervals, subtract two values.

Syntax

int getTickCount()

Returns

Milliseconds.

Example

local t = getTickCount()
-- ... ciężka praca ...
outputServerLog("Trwało " .. (getTickCount() - t) .. " ms")

See also