local fps = math.floor(1 / globals.frametime)
function get_latency()
local netchann_info = utils.net_channel()
if netchann_info == nil then return "0" end
local latency = netchann_info.latency[0]
return string.format("%1.f", math.max(0.0, latency) * 1000.0)
end
local ping = get_latency()
local fps = math.floor(1 / globals.frametime)
function get_latency()
local netchann_info = utils.net_channel()
if netchann_info == nil then return "0" end
local latency = netchann_info.latency[0]
return string.format("%1.f", math.max(0.0, latency) * 1000.0)
end
local ping = get_latency()