Skip to content

Instantly share code, notes, and snippets.

@isicju
Last active October 25, 2017 18:13
Show Gist options
  • Save isicju/3736064e7077de9537bb5213bba6b8e5 to your computer and use it in GitHub Desktop.
Save isicju/3736064e7077de9537bb5213bba6b8e5 to your computer and use it in GitHub Desktop.
old-fashioned benchmarking
long before = System.currentTimeMillis();
doMagic();
long now = System.currentTimeMillis();
System.out.println("Seconds elapsed: " + (now-before)/1000F + " seconds." );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment