PerformanceTimer.java 919 Bytes
package com.bitstrips.imoji.analytics.performance;

import android.support.annotation.UiThread;
import java.util.HashMap;

public class PerformanceTimer
{
  public static final long NOT_STARTED = -1L;
  private static final HashMap<TimedMetric, Long> a = new HashMap();
  
  @UiThread
  public static void startTimer(TimedMetric paramTimedMetric)
  {
    a.put(paramTimedMetric, Long.valueOf(System.currentTimeMillis()));
  }
  
  @UiThread
  public static long stopTimer(TimedMetric paramTimedMetric)
  {
    Long localLong = (Long)a.get(paramTimedMetric);
    if (localLong == null) {
      return -1L;
    }
    a.remove(paramTimedMetric);
    return System.currentTimeMillis() - localLong.longValue();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/analytics/performance/PerformanceTimer.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */