public static void check(final @Nullable Stopwatch stopwatch, final long threshold_millis, final String what) {
		if (stopwatch == null) return;
		final long duration = stopwatch.elapsed(TimeUnit.MILLISECONDS);
		if (duration > threshold_millis) Log.w(TAG, duration + " ms spent in " + what);
	}
Utility class for performance related stuffs

Created by Oasis on 2016/9/25.
shared/src/main/java/com/oasisfeng/perf/Performances.java