Created
February 26, 2018 08:24
-
-
Save Shilo/6c73a60841ce5897a7b59028d47f9dce to your computer and use it in GitHub Desktop.
Vylocity snippet to track ping/latency.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client | |
send data | |
Date.now() | |
Server | |
Send back Date.now() | |
Client | |
"Ping:"+ Date.now()-Math.float(Data)+"ms" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment