Created
February 26, 2014 01:42
-
-
Save tsubakimoto/9221755 to your computer and use it in GitHub Desktop.
stopwatch.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Stopwatch</Title>
<Author>Yuta Matsumura</Author>
<Description>処理時間計測に関するコードスニペット</Description>
<Shortcut>sw</Shortcut>
</Header>
<Snippet>
<Code Language="CSharp"><![CDATA[var before = DateTime.Now.Ticks;
var after = DateTime.Now.Ticks;
System.Diagnostics.Debug.WriteLine(new TimeSpan(after - before).TotalMilliseconds);]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dw.snippet