Timer Start from Stopwatch - CSharp System.Diagnostics

CSharp examples for System.Diagnostics:Stopwatch

Description

Timer Start from Stopwatch

Demo Code


using System.Text;
using System.Diagnostics;
using System.Collections.Generic;
using System;//from  w  w w.j a  v a 2s .  co m

public class Main{

        public static Stopwatch TimerStart()
        {
            Stopwatch watch = new Stopwatch();
            watch.Reset();
            watch.Start();
            return watch;
        }
}

Related Tutorials