long start=System.currentTimeMillis();
super.process();
long end=System.currentTimeMillis();
long total=(end-start)/1000;
java.text.DecimalFormat dc=new DecimalFormat();
dc.applyPattern("0.0");
String formated=dc.format(total);
more pattern is ###,###.00
No comments:
Post a Comment