
com.databasesandlife.util.Timer Maven / Gradle / Ivy
package com.databasesandlife.util;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
/**
* Times a calculation.
*
* Usage:
*
try (Timer t = new Timer("doing something")) { ... }
*
* @author This source is copyright Adrian Smith and licensed under the LGPL 3.
* @see Project on GitHub
*/
public class Timer implements AutoCloseable {
static Logger logger = Logger.getLogger(Timer.class);
static ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy