diff --git a/example/benchmark.cpp b/example/benchmark.cpp index ef0c6640..71bd39e9 100644 --- a/example/benchmark.cpp +++ b/example/benchmark.cpp @@ -8,8 +8,8 @@ int main() { "127.0.0.1", true); server.set_http_handler( "/plaintext", [](coro_http_request& req, coro_http_response& resp) { - resp.get_conn()->set_multi_buf(false); - resp.set_content_type(); + resp.set_delay(false); + resp.need_date_head(false); resp.set_status_and_content(status_type::ok, "Hello, world!"); }); server.sync_start(); diff --git a/press_tool/main.cpp b/press_tool/main.cpp index feddb378..6e2b580f 100644 --- a/press_tool/main.cpp +++ b/press_tool/main.cpp @@ -273,9 +273,8 @@ int main(int argc, char* argv[]) { timer_thd.join(); auto end = std::chrono::steady_clock::now(); - auto dur = - std::chrono::duration_cast(end - beg).count(); - double dur_s = double(dur) / 1000000000; + double dur_s = + std::chrono::duration_cast(end - beg).count(); // statistic uint64_t total = 0;