Skip to content

cesarferreira/timecop

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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