Created
January 2, 2013 23:25
-
-
Save gogsbread/4439318 to your computer and use it in GitHub Desktop.
Basic StopWatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Collections.Generic; | |
using Diag = System.Diagnostics; | |
namespace dotNetPlayGround | |
{ | |
class StopWatch | |
{ | |
public static void Main() | |
{ | |
Diag.Stopwatch sw = new Diag.Stopwatch(); | |
sw.Start(); | |
Thread.Sleep(1000); | |
sw.Stop(); | |
Console.WriteLine(sw.Elapsed.Ticks); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment