getTickCount
Shared
Returns how many milliseconds have passed since scripts started running on this side.
int getTickCount()
Returns
The milliseconds.
Example
local started = getTickCount()
-- ... work ...
print("took " .. (getTickCount() - started) .. " ms")