Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkTransport.GetCurrentRTT

public static int GetCurrentRTT(int hostId, int connectionId, out byte error);

Parameters

errorError (can be cast to NetworkError for more information).
hostIdHost ID associated with this connection.
connectionIdID of the connection.

Returns

int Current round trip time in ms.

Description

Return the round trip time for the given connectionId.

Did you find this page useful? Please give it a rating: