Skip to content

Instantly share code, notes, and snippets.

@gogsbread
Created January 2, 2013 23:25
Show Gist options
  • Save gogsbread/4439318 to your computer and use it in GitHub Desktop.
Save gogsbread/4439318 to your computer and use it in GitHub Desktop.
Basic StopWatch
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