Static way to count time in android
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
library
sample
.gitignore
.yo-rc.json
LICENCE.md
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

timecop

Count the time from any part of your app

As simple as it gets:

// start the timer
TimeCop.getInstance(ctx)
	.start(LOAD_VIEWS_TAG);

// do some work
setupViews();

// stop the timer
TimeCop.getInstance(ctx)
	.stopAndDisplayLog(LOAD_VIEWS_TAG);

// outputs =>  D/TIMECOP: 668 ms - forKey: LOAD_VIEWS_TAG

Installation

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}

Now add your dependency:

dependencies {
	compile 'com.github.cesarferreira:timecop:0.3.3'
}