process time response rest api
<p>I want to create REST API client that can process the time of any response that I get from the server.</p>

<pre><code>var client = new RestClient("http://example.com");
// client.Authenticator = new HttpBasicAuthenticator(username, password);

var request = new RestRequest("resource/{id}", Method.POST);
request.AddParameter("name", "value"); // adds to POST or URL querystring based on Method
request.AddUrlSegment("id", "123"); // replaces matching token in request.Resource

// easily add HTTP Headers
request.AddHeader("header", "value");

// add files to upload (works with compatible verbs)
request.AddFile(path);

// execute the request
IRestResponse response = client.Execute(request);
</code></pre>

<p>for example, I took example code, I get the response in the same line of the send the request.</p>

<p>Should I run another thread to count the time, or there is another way?</p>