ElapsedTime

This library is used by developers to know the time elapsed in your project (Functions, Databases, Constructors ...).

Usage

Add to your build.gradle:

    compile 'ElapsedTimeLib:ElapsedTimeLib:1.0.0'

Start ElapsedTime at the beginning of your function and Stop at the end:

        public void functionToTest {

            ElapsedTime.getSharedInstance(context).start("functionToTest");

            doSomething();

            ElapsedTime.getSharedInstance(context).stop("functionToTest");

        }

Or customizing:

    ElapsedTime.getSharedInstance(context).setLogEnabled(false);
    ElapsedTime.getSharedInstance(context).setLogType(LOG_TYPE.DEBUG);
    ElapsedTime.getSharedInstance(context).setMillis(true);
        public void functionToTest {

            ElapsedTime.getSharedInstance(context).start("functionToTest", true);

            doSomething();

            ElapsedTime.getSharedInstance(context).stop("functionToTest", true);

        }   

Credits & Contact

ElapsedTime was created by jcmore2@gmail.com

License

ElapsedTime is available under the Apache License, Version 2.0.