Calendar.getInstance.getTimeInMillis() is similar to System.currentTimeMillis(). Both are giving long values. Which gives good performace than others. I am planning to use this for audit purpose.
Under the covers, the Calendar classes uses the System.currentTimeMillis() method call to create a Calendar class with the current time. If all you want is the current time in millis, it's probably better to call the System class directly.
But I agree with Rob. This is unlikely to make any difference, and you should only optimize if you first confirm that its an issue first.
Henry
Post by:autobot
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking