public static String timeToString(long time) {
        String result = "";
        if(time < MINUTE)
            result += time + "s";
        else {
            if(time/MINUTE < MINUTE) {
                result += (long)Math.floor(time/MINUTE) + "m";
                if(dv(time,MINUTE) != 0)
                    result += " " + dv(time,MINUTE) + "s";
            } else {
                result += (long)Math.floor(time/HOUR) + "h";
                if(dv(time,HOUR) >= MINUTE)
                    result += " " + (long)Math.floor(dv(time,3600)/MINUTE) + "m";

                if(dv(time,MINUTE) != 0)
                    result += " " + dv(time,MINUTE) + "s";
            }
        }

        return result;
    }