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
11/8/2013 3:42:05 PM
Downloads
1001

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