XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

I want to display the ping time in milliseconds on my screen for debugging

Last post 11/18/2009 10:34 PM by RickyWh. 3 replies.
  • 11/18/2009 10:14 PM

    I want to display the ping time in milliseconds on my screen for debugging

    I'm using a custom NetworkHelper class from a book that I'm reading and so far I've created a couple methods, one for creating sessions and one for finding and joining available sessions. I wired up the NetworkSession events so that messages are displayed on the screen when users enter and exit the session, tested it and it works. I want to also output the ping time in the upper left hand corner of the screen but am not sure about how to go about this, please help

    the AvailableNetworkSession object has a QualityOfService property that has a AverageRoundTripTime but this doesn't appear to be what i'm looking for. Does XNA offer out something that's already available in these networking classes that I can use?

  • 11/18/2009 10:24 PM In reply to

    Re: I want to display the ping time in milliseconds on my screen for debugging

    I think i found my answer

    NetworkGamer.RountTripTime
  • 11/18/2009 10:24 PM In reply to

    Re: I want to display the ping time in milliseconds on my screen for debugging

    Answer
    Reply Quote
  • 11/18/2009 10:34 PM In reply to

    Re: I want to display the ping time in milliseconds on my screen for debugging

    thanks, ya I output that property onto the screen, seems like it updates once every 10 to 15 seconds which is kind of slow but it'll have to do i guess
Page 1 of 1 (4 items) Previous Next