(ws connect) display statistics about how much time it takes to stop the connection / cf #168

This commit is contained in:
Benjamin Sergeant
2020-03-24 20:29:09 -07:00
parent 179e17895d
commit 37cb2cc266
7 changed files with 91 additions and 48 deletions

View File

@ -4,10 +4,12 @@
* Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved.
*/
#include "linenoise.hpp"
#include "IXBench.h"
#include <ixwebsocket/IXSocket.h>
#include <ixwebsocket/IXSocketTLSOptions.h>
#include <ixwebsocket/IXWebSocket.h>
#include "linenoise.hpp"
#include <spdlog/spdlog.h>
#include <sstream>
@ -129,7 +131,10 @@ namespace ix
void WebSocketConnect::stop()
{
_webSocket.stop();
{
Bench bench("ws_connect: stop connection");
_webSocket.stop();
}
}
void WebSocketConnect::start()