SqlClient LastQueryTime Property Nemiro.Data.dll
Elapsed time of the last query to the database.

Namespace: Nemiro.Data.Sql
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax

public TimeSpan LastQueryTime { get; }

Property Value

Type: TimeSpan
Examples

using (SqlClient client = new SqlClient())
{
  client.CommandText = "WAITFOR DELAY '00:00:03'";
  client.ExecuteNonQuery();
  Console.WriteLine("Query execution time: {0}", client.LastQueryTime);
}
See Also