test_class.file: shared/src/test/java/org/eclipse/steady/shared/util/StopWatchTest.java
test_class.identifier: StopWatchTest
test_case.body: @Test
    public void testGetRuntimeMillis() {
      final StopWatch sw = new StopWatch("foo").start();
      sw.lap("bar", false); // Should not be printed due to threshold
      try {
        Thread.sleep(1000);
      } catch (InterruptedException e) {
      }
      sw.lap("baz", true);
      sw.stop();
      final long rt = sw.getRuntimeMillis();
      assertTrue(rt < 50000);
    }
test_case.class_method_signature: StopWatchTest.testGetRuntimeMillis()
test_case.full_signature: @Test public void testGetRuntimeMillis()
test_case.identifier: testGetRuntimeMillis
test_case.invocations: start lap sleep lap stop getRuntimeMillis assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetRuntimeMillis()
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static
focal_class.original_string: private static Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: startMillis = -1
focal_class.modifier: private
focal_class.original_string: private long startMillis = -1;
focal_class.type: long
focal_class.var_name: startMillis
focal_class.declarator: start = -1
focal_class.modifier: private
focal_class.original_string: private long start = -1;
focal_class.type: long
focal_class.var_name: start
focal_class.declarator: stop = -1
focal_class.modifier: private
focal_class.original_string: private long stop = -1;
focal_class.type: long
focal_class.var_name: stop
focal_class.declarator: lapTimes = new LinkedList<Long>()
focal_class.modifier: private
focal_class.original_string: private LinkedList<Long> lapTimes = new LinkedList<Long>();
focal_class.type: LinkedList<Long>
focal_class.var_name: lapTimes
focal_class.declarator: lapsTakenAt = new LinkedList<Long>()
focal_class.modifier: private
focal_class.original_string: private LinkedList<Long> lapsTakenAt = new LinkedList<Long>();
focal_class.type: LinkedList<Long>
focal_class.var_name: lapsTakenAt
focal_class.declarator: progressTracker = null
focal_class.modifier: private
focal_class.original_string: private ProgressTracker progressTracker = null;
focal_class.type: ProgressTracker
focal_class.var_name: progressTracker
focal_class.declarator: activityDescription = null
focal_class.modifier: private
focal_class.original_string: private String activityDescription = null;
focal_class.type: String
focal_class.var_name: activityDescription
focal_class.declarator: LAP_TIME_LOG_THRESHOLD = 5L * 1000L * 1000L * 1000L
focal_class.modifier: private
focal_class.original_string: private long LAP_TIME_LOG_THRESHOLD = 5L * 1000L * 1000L * 1000L;
focal_class.type: long
focal_class.var_name: LAP_TIME_LOG_THRESHOLD
focal_class.declarator: COMPLETION_RATE_LOG_THRESHOLD = 5
focal_class.modifier: private
focal_class.original_string: private double COMPLETION_RATE_LOG_THRESHOLD = 5;
focal_class.type: double
focal_class.var_name: COMPLETION_RATE_LOG_THRESHOLD
focal_class.declarator: FAILED = "Failed"
focal_class.modifier: private static final
focal_class.original_string: private static final String FAILED = "Failed";
focal_class.type: String
focal_class.var_name: FAILED
focal_class.file: shared/src/main/java/org/eclipse/steady/shared/util/StopWatch.java
focal_class.identifier: StopWatch
focal_class.class_method_signature: StopWatch.StopWatch(String _descr)
focal_class.full_signature: public  StopWatch(String _descr)
focal_class.identifier: StopWatch
focal_class.modifiers: public
focal_class.parameters: (String _descr)
focal_class.signature:  StopWatch(String _descr)
focal_class.class_method_signature: StopWatch.StopWatch(String _descr, double _total, boolean _start)
focal_class.full_signature: private  StopWatch(String _descr, double _total, boolean _start)
focal_class.identifier: StopWatch
focal_class.modifiers: private
focal_class.parameters: (String _descr, double _total, boolean _start)
focal_class.signature:  StopWatch(String _descr, double _total, boolean _start)
focal_class.class_method_signature: StopWatch.setTotal(double _total)
focal_class.full_signature: public StopWatch setTotal(double _total)
focal_class.identifier: setTotal
focal_class.modifiers: public
focal_class.parameters: (double _total)
focal_class.return: StopWatch
focal_class.signature: StopWatch setTotal(double _total)
focal_class.class_method_signature: StopWatch.start()
focal_class.full_signature: public StopWatch start()
focal_class.identifier: start
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StopWatch
focal_class.signature: StopWatch start()
focal_class.class_method_signature: StopWatch.progress()
focal_class.full_signature: public long progress()
focal_class.identifier: progress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long progress()
focal_class.class_method_signature: StopWatch.progress(double _by, boolean _force_log)
focal_class.full_signature: public long progress(double _by, boolean _force_log)
focal_class.identifier: progress
focal_class.modifiers: public
focal_class.parameters: (double _by, boolean _force_log)
focal_class.return: long
focal_class.signature: long progress(double _by, boolean _force_log)
focal_class.class_method_signature: StopWatch.lap(String _message)
focal_class.full_signature: public long lap(String _message)
focal_class.identifier: lap
focal_class.modifiers: public
focal_class.parameters: (String _message)
focal_class.return: long
focal_class.signature: long lap(String _message)
focal_class.class_method_signature: StopWatch.getMaxLapTime()
focal_class.full_signature: public long getMaxLapTime()
focal_class.identifier: getMaxLapTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getMaxLapTime()
focal_class.class_method_signature: StopWatch.getAvgLapTime()
focal_class.full_signature: public long getAvgLapTime()
focal_class.identifier: getAvgLapTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getAvgLapTime()
focal_class.class_method_signature: StopWatch.lap(String _message, boolean _force_log)
focal_class.full_signature: public long lap(String _message, boolean _force_log)
focal_class.identifier: lap
focal_class.modifiers: public
focal_class.parameters: (String _message, boolean _force_log)
focal_class.return: long
focal_class.signature: long lap(String _message, boolean _force_log)
focal_class.class_method_signature: StopWatch.stop()
focal_class.full_signature: public void stop()
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.class_method_signature: StopWatch.stop(Exception _e)
focal_class.full_signature: public void stop(Exception _e)
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: (Exception _e)
focal_class.return: void
focal_class.signature: void stop(Exception _e)
focal_class.class_method_signature: StopWatch.log(String _msg1, Long _lap_time, @NotNull String _msg2)
focal_class.full_signature: private void log(String _msg1, Long _lap_time, @NotNull String _msg2)
focal_class.identifier: log
focal_class.modifiers: private
focal_class.parameters: (String _msg1, Long _lap_time, @NotNull String _msg2)
focal_class.return: void
focal_class.signature: void log(String _msg1, Long _lap_time, @NotNull String _msg2)
focal_class.class_method_signature: StopWatch.getStartMillis()
focal_class.full_signature: public long getStartMillis()
focal_class.identifier: getStartMillis
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getStartMillis()
focal_class.class_method_signature: StopWatch.getRuntime()
focal_class.full_signature: public long getRuntime()
focal_class.identifier: getRuntime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getRuntime()
focal_class.class_method_signature: StopWatch.getRuntimeMillis()
focal_class.full_signature: public long getRuntimeMillis()
focal_class.identifier: getRuntimeMillis
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getRuntimeMillis()
focal_class.class_method_signature: StopWatch.isStarted()
focal_class.full_signature: public boolean isStarted()
focal_class.identifier: isStarted
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isStarted()
focal_class.class_method_signature: StopWatch.isRunning()
focal_class.full_signature: public boolean isRunning()
focal_class.identifier: isRunning
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRunning()
focal_method.body: public long getRuntimeMillis() {
      final long nano = this.getRuntime();
      return nano / 1000000L;
    }
focal_method.class_method_signature: StopWatch.getRuntimeMillis()
focal_method.full_signature: public long getRuntimeMillis()
focal_method.identifier: getRuntimeMillis
focal_method.invocations: getRuntime
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: long
focal_method.signature: long getRuntimeMillis()