com.databasesandlife.util.Timer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-common Show documentation
Show all versions of java-common Show documentation
Utility classes developed at Adrian Smith Software (A.S.S.)
package com.databasesandlife.util;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Times a calculation.
*
* Usage:
*
try (Timer ignored = 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 = LoggerFactory.getLogger(Timer.class);
static ThreadLocal
© 2015 - 2024 Weber Informatics LLC | Privacy Policy