public class

StopWatch

extends Object
java.lang.Object
   ↳ com.davidluoye.support.util.StopWatch

Class Overview

A StopWatch records start, laps and stop, and print them to logcat.

Summary

Public Methods
static StopWatch getNullStopWatch()
Return a dummy instance that does no operations.
void lap(String lapLabel)
Record a lap.
static StopWatch start()
Create a new instance and start it.
void stopAndLog(String TAG, int timeThresholdToLog)
Stop it and log the result, if the total time >= timeThresholdToLog.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static StopWatch getNullStopWatch ()

Return a dummy instance that does no operations.

public void lap (String lapLabel)

Record a lap.

public static StopWatch start ()

Create a new instance and start it.

public void stopAndLog (String TAG, int timeThresholdToLog)

Stop it and log the result, if the total time >= timeThresholdToLog.