proguard.util.Benchmark Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proguard-base Show documentation
Show all versions of proguard-base Show documentation
ProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode
/*
* 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