| java.lang.Object | |
| ↳ | com.davidluoye.support.utils.StopWatch |
A StopWatch records start, laps and stop, and print them to logcat.
| 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
| |||||||||||
Record a lap.
Stop it and log the result, if the total time >= timeThresholdToLog.