Timer End from Stopwatch - CSharp System.Diagnostics

CSharp examples for System.Diagnostics:Stopwatch

Description

Timer End from Stopwatch

Demo Code


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();
        }
}

Related Tutorials