Пример #1
0
  /**
   * construct a time format
   *
   * @param milliseconds
   */
  private 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;
    }
  }
Пример #2
0
 /**
  * update time
  *
  * @param t
  */
 public void getTime(TimeFormat t) {
   t.getTime();
 }