test_class.file: runelite-client/src/test/java/net/runelite/client/plugins/timers/ElapsedTimerTest.java
test_class.identifier: ElapsedTimerTest
test_case.body: @Test
  	public void testGetText()
  	{
  		final Instant now = Instant.now();
  		final Instant fiveSecondsAgo = now.minusSeconds(5);
  		final Instant fiveMinutesAgo = now.minusSeconds(5 * 60);
  		final Instant oneHourAgo = now.minusSeconds(60 * 60);
  		final Instant fiveHoursAgo = now.minusSeconds(5 * 60 * 60);
  
  		assertEquals("00:00", timerText(now, now));
  		assertEquals("00:00", timerText(now, null));
  		assertEquals("00:05", timerText(fiveSecondsAgo, now));
  		assertEquals("00:05", timerText(fiveSecondsAgo, null));
  		assertEquals("04:55", timerText(fiveMinutesAgo, fiveSecondsAgo));
  		assertEquals("05:00", timerText(fiveMinutesAgo, now));
  		assertEquals("05:00", timerText(fiveMinutesAgo, null));
  		assertEquals("55:00", timerText(oneHourAgo, fiveMinutesAgo));
  		assertEquals("59:55", timerText(oneHourAgo, fiveSecondsAgo));
  		assertEquals("60:00", timerText(oneHourAgo, now));
  		assertEquals("60:00", timerText(oneHourAgo, null));
  		assertEquals("240:00", timerText(fiveHoursAgo, oneHourAgo));
  		assertEquals("295:00", timerText(fiveHoursAgo, fiveMinutesAgo));
  		assertEquals("299:55", timerText(fiveHoursAgo, fiveSecondsAgo));
  		assertEquals("300:00", timerText(fiveHoursAgo, now));
  		assertEquals("300:00", timerText(fiveHoursAgo, null));
  	}
test_case.class_method_signature: ElapsedTimerTest.testGetText()
test_case.full_signature: @Test public void testGetText()
test_case.identifier: testGetText
test_case.invocations: now minusSeconds minusSeconds minusSeconds minusSeconds assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText assertEquals timerText
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetText()
focal_class.declarator: startTime
focal_class.modifier: private final
focal_class.original_string: private final Instant startTime;
focal_class.type: Instant
focal_class.var_name: startTime
focal_class.declarator: lastTime
focal_class.modifier: private final
focal_class.original_string: private final Instant lastTime;
focal_class.type: Instant
focal_class.var_name: lastTime
focal_class.file: runelite-client/src/main/java/net/runelite/client/plugins/timers/ElapsedTimer.java
focal_class.identifier: ElapsedTimer
focal_class.class_method_signature: ElapsedTimer.ElapsedTimer(BufferedImage image, TimersPlugin plugin, Instant startTime, Instant lastTime)
focal_class.full_signature:   ElapsedTimer(BufferedImage image, TimersPlugin plugin, Instant startTime, Instant lastTime)
focal_class.identifier: ElapsedTimer
focal_class.parameters: (BufferedImage image, TimersPlugin plugin, Instant startTime, Instant lastTime)
focal_class.signature:  ElapsedTimer(BufferedImage image, TimersPlugin plugin, Instant startTime, Instant lastTime)
focal_class.class_method_signature: ElapsedTimer.getText()
focal_class.full_signature: @Override public String getText()
focal_class.identifier: getText
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getText()
focal_class.class_method_signature: ElapsedTimer.getTextColor()
focal_class.full_signature: @Override public Color getTextColor()
focal_class.identifier: getTextColor
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Color
focal_class.signature: Color getTextColor()
focal_class.class_method_signature: ElapsedTimer.getTooltip()
focal_class.full_signature: @Override public String getTooltip()
focal_class.identifier: getTooltip
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTooltip()
focal_class.superclass: extends InfoBox
focal_method.body: @Override
  	public String getText()
  	{
  		if (startTime == null)
  		{
  			return null;
  		}
  
  		Duration time = Duration.between(startTime, lastTime == null ? Instant.now() : lastTime);
  		final String formatString = "mm:ss";
  		return DurationFormatUtils.formatDuration(time.toMillis(), formatString, true);
  	}
focal_method.class_method_signature: ElapsedTimer.getText()
focal_method.full_signature: @Override public String getText()
focal_method.identifier: getText
focal_method.invocations: between now formatDuration toMillis
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getText()