AndroidAPS/app/src/main/java/info/nightscout/utils/Profiler.java
2017-06-15 23:12:12 +02:00

19 lines
402 B
Java

package info.nightscout.utils;
import org.slf4j.Logger;
import java.util.Date;
/**
* Created by mike on 29.01.2017.
*/
public class Profiler {
public Profiler(){}
static public void log(Logger log, String function, Date start) {
long msec = System.currentTimeMillis() - start.getTime();
log.debug(">>> " + function + " <<< executed in " + msec + " miliseconds");
}
}