Skip to content

Instantly share code, notes, and snippets.

@revirth
Created July 18, 2015 11:27
Show Gist options
  • Save revirth/70bc520b3ad2a8fd0b1d to your computer and use it in GitHub Desktop.
Save revirth/70bc520b3ad2a8fd0b1d to your computer and use it in GitHub Desktop.
StopWatch,Timer
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
// something doing
watch.Stop();
Response.Write(watch.Elapsed.ToString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment