PageRenderTime 9ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

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