/** * construct a time format * * @param milliseconds */ public TimeFormat(long milliseconds, int round) { this.rounding = round; this.original = milliseconds; if (milliseconds >= ONE_SECOND) { this.remainder = milliseconds; getTime(); } else { micro = true; // if less than second, we'll just // display time = milliseconds; } }
/** * update time * * @param t */ public void getTime(TimeFormat t) { t.getTime(); }