AndroidAPS/app/src/main/java/info/nightscout/utils/Profiler.java

17 lines
368 B
Java
Raw Normal View History

2017-01-29 22:37:25 +01:00
package info.nightscout.utils;
import org.slf4j.Logger;
/**
* Created by mike on 29.01.2017.
*/
public class Profiler {
public Profiler(){}
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");
}
}