 }
 
 class ViewController: UIViewController, WKNavigationDelegate {
+  var startTime = DispatchTime.now()
   var webView: WKWebView?
   var clientSocket:Socket?
   var buffer_in = ""

        if (str != nil) {
          self.receivedRawData(id:id, str:str!)
        }
      } catch let err {
        self.log("\(id): Socket Read error: \(err)")
        cont = socket.isConnected
      }
    } while cont

      if parts.count > 1 {
        data = parts[1]
      }
      let messageParts = message.components(separatedBy: ":")
      if messageParts.count > 1 {
        message = messageParts[0]
        for i in 1..<messageParts.count {
