mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Debug info: running time
This commit is contained in:
@@ -1677,6 +1677,14 @@ public class Helper {
|
||||
return DateUtils.getRelativeTimeSpanString(context, millis);
|
||||
}
|
||||
|
||||
static String formatDuration(long ms) {
|
||||
int days = (int) (ms / (24 * 3600 * 1000L));
|
||||
ms = ms % (24 * 3600 * 1000L);
|
||||
long seconds = ms / 1000;
|
||||
ms = ms % 1000;
|
||||
return (days > 0 ? days + " " : "") + DateUtils.formatElapsedTime(seconds) + "." + ms;
|
||||
}
|
||||
|
||||
static String formatNumber(Integer number, long max, NumberFormat nf) {
|
||||
if (number == null)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user