How to insert a stop watch before the polling starts
<p>May I know How to insert a stop watch for this piece of code from <code>Poll()</code> method...I have to make start count such that before the database starts and amount of time it took for polling.</p>

<pre><code>    public void poll() throws Exception {
    st = conn.createStatement();

    for (int i=0; i&lt;10; i++) 
    {
        Timestamp start;
        rs = st.executeQuery( "select * from msg_new_to_bde" );
        Timestamp end;
        //speed = end - start;


        Collection&lt;KpiMessage&gt; pojoCol = new ArrayList&lt;KpiMessage&gt;();
        while (rs.next()) {             
            KpiMessage filedClass = convertRecordsetToPojo(rs);
            pojoCol.add(filedClass);

        }
        for (KpiMessage pojoClass : pojoCol) {
            System.out.println("=== Iteratioin Nr. " + i + "====");
            System.out.print(pojoClass.getSequence());
            System.out.print(pojoClass.getTableName());
            System.out.print(pojoClass.getEntryTime());
            System.out.print(pojoClass.getProcessingTime());
            System.out.println(pojoClass.getStatus());
            //            System.out.println(pojoClass.getprocessDuration());
        }
        System.out.print(pojoCol.size());
    }


}
</code></pre>
