proguard.util.TimeUtil 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 TimeUtil
{
public static String millisecondsToMinSecReadable(int timeMs)
{
int ms = timeMs % 1000;
int s = ((timeMs - ms) / 1000) % 60;
int m = timeMs / 60000;
return String.format("%d:%d.%d (m:s.ms)", m, s, ms);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy