Skip to content

Instantly share code, notes, and snippets.

@d6y
Created July 22, 2012 15:47
Show Gist options
  • Select an option

  • Save d6y/3160052 to your computer and use it in GitHub Desktop.

Select an option

Save d6y/3160052 to your computer and use it in GitHub Desktop.
// Here's a method that uses the time call:
int f() throws MyException {
time("opName", { =>
// some statements that can throw MyException
});
time("opName", {=>
return ...compute result...;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment