I am providing search functionality in my website, when user searches a record then I want to display the time the query taken to get the results same as google does. When w
We monitor this from the application code, just to include the time required to establish/close the connection and transmit data across the network. It's pretty straight-forward...
Dim Duration as TimeSpan
Dim StartTime as DateTime = DateTime.Now
'Call the database here and execute your SQL statement
Duration = DateTime.Now.Subtract(StartTime)
Console.WriteLine(String.Format("Query took {0} seconds", Duration.TotalSeconds.ToString()))
Console.ReadLine()