WoW:API GetNetStats: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
  <center>'''GetNetStats''' ''-Documentation by Myrrion (thanks Jooky)-''</center>
  <center>'''GetNetStats''' ''-Documentation by Myrrion (thanks Jooky)-''</center>


Line 37: Line 38:


: Retrieve information about your current net statistics.
: Retrieve information about your current net statistics.
----
{{WoW API}}

Revision as of 17:26, 6 January 2007

WoW API < GetNetStats

GetNetStats -Documentation by Myrrion (thanks Jooky)-

Retrieve info about net statistics.

down, up, lag = GetNetStats();


Arguments
none

Returns
(- down)
down
-
(- up)
up
-
(Number lag)
lag
The lag (in milliseconds) of your connection.

Example
local down, up, lag = GetNetStats();
message("Lag: "..lag.." milliseconds.");
Result

Message box appears with amount of lag in milliseconds.


Description
Retrieve information about your current net statistics.