Here you can find the source of getMinute()
public static double getMinute()
//package com.java2s; //License from project: Open Source License import java.text.DecimalFormat; public class Main { private static long timer = 0; private static DecimalFormat formatter = new DecimalFormat("#.##"); public static double getMinute() { return format(getSecond() / 60.0); }/*w ww . ja v a 2 s . c o m*/ private static Double format(double val) { return Double.parseDouble(formatter.format(val)); } public static double getSecond() { return format((double) getMili() / 1000.0); } public static long getMili() { return timer / 1000000; } }