stopwatch


Snippet Details

Shortcut
stopwatch
Description
Code snippet for System.Diagnostics.Stopwatch.StartNew, Stop + Log Elapsed
Language
csharp
Types
Expansion, SurroundsWith
Author
Fons Sonnemans
Upload on
8-11-2013 15:42:05
Downloads
2973

Declarations

ID ToolTip Default
var variable sw

Code Output

        System.Diagnostics.Stopwatch $var$ = System.Diagnostics.Stopwatch.StartNew(); 
  $selected$
	$var$.Stop();
	Console.WriteLine($var$.Elapsed);   
	
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages