
package uk.co.wingpath.modbus;

/**
* A ResponseTimeMonitor is informed of slave response times to Modbus requests,
* so that it can report them or compute statistics from them to adjust
* behaviour.
*/
public interface ResponseTimeMonitor
{
    /**
    * This method is called for each slave response received.
    * @param responseTime the time period between sending the request and
    * receiving the response, in nanoseconds.
    */
    void inform (long responseTime);
}

