public void UpdateMetrics(OpcConversation conv) { string measurement = conv.GetMessageType().ToString(); ulong timedifference = conv.CalculateTimeDifference(); long timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); switch (conv.GetMessageType()) { case OpcMessageType.ReadResponse: ReadRequest.Set(timedifference); break; case OpcMessageType.BrowseResponse: BrowseRequest.Set(timedifference); break; case OpcMessageType.CallResponse: CallRequest.Set(timedifference); break; } ReadRequest.Set(timedifference); }