2.1.1.3 : How statistics are accumulated
Computing statistics. When a RESULT_DATA message is received, the daemon dispatches the data to the registered processing function and measures the elapsed time. If a stat daemon is configured, updateStatAccumulator is called with this elapsed time to update the accumulator associated with the data type.
Communication statistics. When a message is sent with confirmation requested (isConfirmationNeeded = true), the message is stored in an internal map (p_mapMessageToBeConfirmed) with its send timestamp. When the corresponding MESSAGE_CONFIRMATION is received, the round-trip latency is computed as: