API GetNetStats

Retrieve info about network statistics.

bandwidthIn, bandwidthOut, latencyHome, latencyWorld = GetNetStats;

Returns

 * bandwidthIn : Current incoming bandwidth (download) usage, measured in KB/s.
 * bandwidthOut : Current outgoing bandwidth (upload) usage, measured in KB/s.
 * latencyHome : Average roundtrip latency to the home realm server (only updated every 30 seconds).
 * latencyWorld : Average roundtrip latency to the current world server (only updated every 30 seconds).

Example
local down, up, lagHome, lagWorld = GetNetStats; message("LagWorld: "..lagWorld.." milliseconds.");

Result

Message box appears with amount of world latency in milliseconds.