CSharp examples for System.Diagnostics:Stopwatch
Timer End from Stopwatch
using System.Text; using System.Diagnostics; using System.Collections.Generic; using System;/*w w w. j ava 2 s . co m*/ public class Main{ public static string TimerEnd(Stopwatch watch) { watch.Stop(); double costtime = watch.ElapsedMilliseconds; return costtime.ToString(); } }