Returns or sets the round trip time of the previous round trip time computation. If value is nil the current value of the peer is returned. Otherwise the the previous round trip time computation is set to the specified value and returned.
ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up you can set the value of the last round trip time to a more accurate guess.
peer:last_round_trip_time()
None.
peer:last_round_trip_time(value)
number value
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/enet.peer:last_round_trip_time