Stopwatch sw = new Stopwatch();
sw.Reset();sw.Start();
sw.Stop(); Console.WriteLine(sw.ElapsedMilliseconds);