Legacy Documentation: Version 2017.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

error Error (can be cast to NetworkError for more information).
hostId Host ID associated with this connection.
connectionId ID 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: