163164165166167168169170171172173
if (secondCount > 1000) { secondCount -= 1000; totalTime += 1000; Millisecond date = new Millisecond(new Date(totalTime)); updateGeneralStats(date); updateGeneticStats(date); }
217218219220221222223224
/** * The {@link Millisecond} class is immutable, so should not be * {@link Cloneable}. */ public void testNotCloneable() { Millisecond m = new Millisecond(599, 23, 45, 7, 9, 10, 2007); assertFalse(m instanceof Cloneable); }
123124125126127128129130131132133
} private void initTimeUnits() { addUnit(new JustNow()); addUnit(new Millisecond()); addUnit(new Second()); addUnit(new Minute()); addUnit(new Hour()); addUnit(new Day()); addUnit(new Week());