How to get time since last server response.

Options
Is it possible the get the time lapsed since last successful communication with the server?

Best, Hu

Comments

  • huhund
    Options
    I found a solution:

    var ticks = PhotonNetwork.networkingPeer.LocalTimeInMilliSeconds - PhotonNetwork.networkingPeer.TimestampOfLastSocketReceive;

    Footnote: This is in local time. Which seems to be different from PhotonNetwork.ServerTimestamp
    Footnote2: LocalTimeInMilliSeconds is deprecated but I can't find an implementation for the suggested replacement SupportClass.GetTickCount