Skip to content

Instantly share code, notes, and snippets.

@sadedv
Last active March 8, 2016 17:22
Show Gist options
  • Save sadedv/9e4ee1483ed97b8192e3 to your computer and use it in GitHub Desktop.
Save sadedv/9e4ee1483ed97b8192e3 to your computer and use it in GitHub Desktop.
Timer таймер
long start = System.currentTimeMillis();
//write your code here
long timeSpent = System.currentTimeMillis() - start;
System.out.println(timeSpent + " ms");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment