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

proguard.util.Benchmark Maven / Gradle / Ivy

Go to download

ProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode

There is a newer version: 7.6.0
Show newest version
/*
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
 *             of Java bytecode.
 *
 * Copyright (c) 2002-2022 Guardsquare NV
 */

package proguard.util;

public class Benchmark
{
    private long startTime;
    private int  elapsedTimeMs;

    public void start()
    {
        startTime = System.currentTimeMillis();
    }

    public void stop()
    {
        elapsedTimeMs = (int) (System.currentTimeMillis() - startTime);
    }

    /**
     * Return the elapsed time in milliseconds.
     */
    public int getElapsedTimeMs()
    {
        return elapsedTimeMs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy