(ws) echo_client command renamed to autoroute. Command exit once the server close the connection. push_server commands exit once N messages have been sent.

This commit is contained in:
Benjamin Sergeant
2020-09-03 09:13:23 -07:00
parent 5534a7fdf9
commit a40003e85a
6 changed files with 126 additions and 150 deletions

View File

@ -12,10 +12,8 @@ namespace ix
{
Bench::Bench(const std::string& description)
: _description(description)
, _start(std::chrono::high_resolution_clock::now())
, _reported(false)
{
;
reset();
}
Bench::~Bench()
@ -26,6 +24,12 @@ namespace ix
}
}
void Bench::reset()
{
_start = std::chrono::high_resolution_clock::now();
_reported = false;
}
void Bench::report()
{
auto now = std::chrono::high_resolution_clock::now();

View File

@ -17,6 +17,7 @@ namespace ix
Bench(const std::string& description);
~Bench();
void reset();
void report();
uint64_t getDuration() const;

View File

@ -6,4 +6,4 @@
#pragma once
#define IX_WEBSOCKET_VERSION "10.3.2"
#define IX_WEBSOCKET_VERSION "10.3.3"