/src/main/java/com/t11e/discovery/datatool/StopWatchHelper.java

http://github.com/t11e/discovery_datatool · Java · 19 lines · 15 code · 4 blank · 0 comment · 1 complexity · fb0b1c59a46e3014f55042b689f5175c MD5 · raw file

  1. package com.t11e.discovery.datatool;
  2. import org.apache.commons.lang.time.StopWatch;
  3. public class StopWatchHelper
  4. {
  5. public static StopWatch startTimer(final boolean shouldLogTiming)
  6. {
  7. StopWatch watch = null;
  8. if (shouldLogTiming)
  9. {
  10. watch = new StopWatch();
  11. watch.start();
  12. }
  13. return watch;
  14. }
  15. }