tokio-timeit-middleware
Time how long it takes your Tokio Service
to send a Service::Response
in
reply to a Service::Request
.
Usage
First, add this to your Cargo.toml:
[]
= { = "https://github.com/fitzgen/tokio-timeit-middleware" }
Next, add this to your crate:
extern crate tokio_timeit_middleware;
To time your Tokio Service
's request/response times, wrap it in
tokio_timeit_middleware::Timeit
:
let timed_service = new