Skip to content

Instantly share code, notes, and snippets.

@maniksurtani
Last active December 17, 2015 01:49
Show Gist options
  • Save maniksurtani/5531469 to your computer and use it in GitHub Desktop.
Save maniksurtani/5531469 to your computer and use it in GitHub Desktop.
Bad code
Date timeStart1 = new Date();
// do some work
long timeDiff = Math.abs(new Date().getTime() - timeStart1.getTime());
log.debug("Duration(ms)..."+timeDiff+ "\n"+ "\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment