NET Entity Data Model in an Asp.net MVC web application. The database is up in Azure. I am trying to time my Sql Queries like this with the start and end time either side of the query.
start = DateTime.Now;
var query = item.Database.SqlQuery<CustomerQuery>(queryString);
end = DateTime.Now;
I am calculating the time it took like this
Duration = end.Subtract(start);
Now no matter how many results are being returned, sometimes in the thousands the time is practically the same.
Why is this? and is there a way of getting a more accurate time