Skip to content

Instantly share code, notes, and snippets.

@isidore
Created June 18, 2014 08:46
Show Gist options
  • Save isidore/f69cd4bb4d883d98ef62 to your computer and use it in GitHub Desktop.
Save isidore/f69cd4bb4d883d98ef62 to your computer and use it in GitHub Desktop.
Logger.MarkEntryPoints
public void MyMethod()
{
using (Logger.MarkEntryPoints())
{
if (guardClauss){return ;}
// other logic
}
}
Will produce
6/18/2014 3:43:06 AM ~000008ms => ClassName.MyMethod()
6/18/2014 3:43:06 AM ~000004ms <= ClassName.MyMethod()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment