func (em *EventMeter) RegisterLatencyCallback(f LatencyCallbackFunc) {
	em.mtx.Lock()
	defer em.mtx.Unlock()
	em.latencyCallback = f
}
// RegisterLatencyCallback allows you to set latency callback.
RegisterLatencyCallback allows you to set latency callback.
// RegisterLatencyCallback allows you to set latency callback .
func (em *EventMeter) RegisterLatencyCallback(f LatencyCallbackFunc) {
	em.mtx.Lock()
	defer em.mtx.Unlock()
	em.latencyCallback = f
}
func ( em * EventMeter ) RegisterLatencyCallback ( f LatencyCallbackFunc ) { em . mtx . Lock ( ) defer em . mtx . Unlock ( ) em . latencyCallback = f }
RegisterLatencyCallback allows you to set latency callback.
RegisterLatencyCallback allows you to set latency callback .