![JAR search and dependency download from the Maven repository](/logo.png)
link.jfire.testsupport.time.ThreadTimewatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfire-testsupport Show documentation
Show all versions of jfire-testsupport Show documentation
Testsupport is test of jfire system support framework
The newest version!
package link.jfire.testsupport.time;
public class ThreadTimewatch
{
private static ThreadLocal t0 = new ThreadLocal<>();
private static ThreadLocal t1 = new ThreadLocal<>();
public static void start()
{
t0.set(System.currentTimeMillis());
}
public static void end()
{
t1.set(System.currentTimeMillis());
}
public static long getTotalTime()
{
return t1.get() - t0.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy