Skip to content

Instantly share code, notes, and snippets.

@MattJeanes
Last active August 29, 2015 13:56
Show Gist options
  • Save MattJeanes/8892623 to your computer and use it in GitHub Desktop.
Save MattJeanes/8892623 to your computer and use it in GitHub Desktop.
Get's the current tickrate of Garry's Mod and prints it to console, one line so it can be used in lua_run|lua_run_cl.
local n=0 hook.Add("Tick", "TickFinder", function() n=n+1 end) timer.Simple(1,function() hook.Remove("Tick", "TickFinder") print("Tickrate: " .. n) end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment