Friday, October 8, 2010

Calculating Time in milliseconds, in java

            long start = System.currentTimeMillis();
            float elapsedTimeMillis;
           
            Put the code here

            elapsedTimeMillis = (System.currentTimeMillis()-start);
            elapsedTimeMillis =elapsedTimeMillis/1000;
            System.out.println("getting xml rowset"+elapsedTimeMillis);

No comments: