using System; using System.Diagnostics; public class Test { public static void Main() { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); //bindingSource.datasource = db.table; stopwatch.Stop(); Console.WriteLine("Time elapsed: {0}", stopwatch.Elapsed); } }