Test ping by lua
I want to make a program whit(Auto play media studio) that test my ping and say my ping :D
Please help me : Give me a source code or an example Thanks alot:cool: |
If you are just looking for the code to get your latency then:
local _, _, latency = GetNetStats() |
However, keep in mind that the values from GetNetStats are cached and won't update more often than every 30 seconds, no matter how often you call the function. Depending on your needs, you could also watch player spellcast events instead, and track the time difference between UNIT_SPELLCAST_SENT and UNIT_SPELLCAST_STARTED for the same spell.
|
I'm pretty sure this is spam since they just stuck the name of some random software in their post.
|
Quote:
|
All times are GMT -6. The time now is 11:25 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI