1#ifndef NANOMMO_CLIENT_ROUND_TRIP_H_
2#define NANOMMO_CLIENT_ROUND_TRIP_H_
14 void Sent(uint32_t sequence,
double now);
17 void Acked(uint32_t acked,
double now);
23 std::map<uint32_t, double> sent_;
24 float milliseconds_ = 0.0f;
void Sent(uint32_t sequence, double now)
We sent the input of that sequence, at the time, in seconds.
float milliseconds() const
In milliseconds, smoothed over the last few, or 0 before any.
void Acked(uint32_t acked, double now)
The world says the server applied the inputs up to acked.
float DrawRoundTrip(float milliseconds, float top)