Skip to content

cesarferreira/timecop

Repository files navigation

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'
}

About

Static way to count time in android

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages