Beispiel #1
0
  /**
   * 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;
    }
  }
Beispiel #2
0
 /**
  * update time
  *
  * @param t
  */
 public void getTime(TimeFormat t) {
   t.getTime();
 }