2019-02-26 20:38:27 +01:00
|
|
|
package info.nightscout.androidaps.utils;
|
2017-01-29 22:37:25 +01:00
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
2019-12-28 02:49:00 +01:00
|
|
|
import info.nightscout.androidaps.logging.AAPSLogger;
|
|
|
|
import info.nightscout.androidaps.logging.LTag;
|
|
|
|
|
2017-01-29 22:37:25 +01:00
|
|
|
/**
|
|
|
|
* Created by mike on 29.01.2017.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class Profiler {
|
2019-12-28 02:49:00 +01:00
|
|
|
public Profiler() {
|
|
|
|
}
|
2017-01-29 22:37:25 +01:00
|
|
|
|
2019-12-28 02:49:00 +01:00
|
|
|
@Deprecated
|
2018-08-17 15:11:43 +02:00
|
|
|
static public void log(Logger log, String function, long start) {
|
|
|
|
long msec = System.currentTimeMillis() - start;
|
2017-01-29 22:37:25 +01:00
|
|
|
log.debug(">>> " + function + " <<< executed in " + msec + " miliseconds");
|
|
|
|
}
|
2019-12-28 02:49:00 +01:00
|
|
|
|
|
|
|
static public void log(AAPSLogger log, LTag lTag, String function, long start) {
|
|
|
|
long msec = System.currentTimeMillis() - start;
|
|
|
|
log.debug(lTag, ">>> " + function + " <<< executed in " + msec + " miliseconds");
|
|
|
|
}
|
2017-01-29 22:37:25 +01:00
|
|
|
}
|