All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kendal.utils.KendalMessager Maven / Gradle / Ivy

The newest version!
package kendal.utils;

import javax.annotation.processing.Messager;
import javax.tools.Diagnostic;

public class KendalMessager {

    private final Messager messager;

    public KendalMessager(Messager messager) {
        this.messager = messager;
    }

    public void printMessage(Diagnostic.Kind kind, String message) {
        messager.printMessage(kind, "[Kendal] " + message);
    }

    public void printElapsedTime(String what, long since) {
        long elapsedTime = System.currentTimeMillis() - since;
        printMessage(Diagnostic.Kind.NOTE, what + " execution time: " + elapsedTime + " milliseconds");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy