nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::RoundTrip Class Reference

#include <round_trip.h>

Public Member Functions

void Sent (uint32_t sequence, double now)
 We sent the input of that sequence, at the time, in seconds.
void Acked (uint32_t acked, double now)
 The world says the server applied the inputs up to acked.
float milliseconds () const
 In milliseconds, smoothed over the last few, or 0 before any.

Detailed Description

How long the server takes to apply an input of ours and say so: from sending each numbered input to the world that says it was applied.

Definition at line 11 of file round_trip.h.

Member Function Documentation

◆ Acked()

void nanommo::RoundTrip::Acked ( uint32_t acked,
double now )

The world says the server applied the inputs up to acked.

Definition at line 26 of file round_trip.cc.

◆ milliseconds()

float nanommo::RoundTrip::milliseconds ( ) const
inline

In milliseconds, smoothed over the last few, or 0 before any.

Definition at line 20 of file round_trip.h.

◆ Sent()

void nanommo::RoundTrip::Sent ( uint32_t sequence,
double now )

We sent the input of that sequence, at the time, in seconds.

Definition at line 24 of file round_trip.cc.


The documentation for this class was generated from the following files: