package com.splunk.mint.network;

public class Timer extends Metric<Long>
{
  private Long end = Long.valueOf(0L);
  private Long start = null;

  public Timer(String paramString)
  {
    super(paramString + "-timer");
  }

  public void done()
  {
    this.end = Long.valueOf(System.currentTimeMillis());
  }

  public long getStartValue()
  {
    if (this.start == null)
      return 0L;
    return this.start.longValue();
  }

  public long getStopValue()
  {
    return this.end.longValue();
  }

  public Long getValue()
  {
    if (this.start == null)
      return null;
    if (this.end != null)
      return Long.valueOf(this.end.longValue() - this.start.longValue());
    return Long.valueOf(System.currentTimeMillis() - this.start.longValue());
  }

  public void start()
  {
    if (this.start == null)
      this.start = Long.valueOf(System.currentTimeMillis());
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.splunk.mint.network.Timer
 * JD-Core Version:    0.6.2
 */