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

proguard.util.TimeUtil 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 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