Stop the stopwatch.
This method ends a new timing session, allowing the time to be retrieved.
621622623624625626627628629630631
commentAuthorEmail, commentAuthorURL, change.toString(), null ); sw.stop(); log.debug("Akismet request done in: "+sw); if( isSpam ) {
6364656667686970717273
String html = m_manager.getHTML( context, d ); assertNotNull( "noncached got null response",html); } sw.stop(); System.out.println(" Nocache took "+sw); long nocachetime = sw.getTime(); sw.reset();
8384858687888990919293
String html = m_manager.getHTML( context, pagedata ); assertNotNull("cached got null response",html); } sw.stop(); System.out.println(" Cache took "+sw); long speedup = nocachetime / sw.getTime(); System.out.println(" Approx speedup: "+speedup+"x"); }
90919293949596979899100
PropFindMethod m = new PropFindMethod( pickProvider(context) ); m.execute( req, res, path.subPath(1) ); } sw.stop(); log.debug("Propfind done for path "+path+", took "+sw); } protected void doOptions( HttpServletRequest req, HttpServletResponse res )
291292293294295296297298299300301
} serializeToDisk(); } sw.stop(); log.info( "Cross reference scan done in "+sw ); WikiEventUtils.addWikiEventListener(m_engine.getPageManager(), WikiPageEvent.PAGE_DELETED, this); }
335336337338339340341342343344345
in.close(); m_unmutableReferredBy = Collections.unmodifiableMap( m_referredBy ); m_unmutableRefersTo = Collections.unmodifiableMap( m_refersTo ); sw.stop(); log.debug("Read serialized data successfully in "+sw); } finally { if( in != null ) in.close();
369370371372373374375376377378379
out.writeObject( m_refersTo ); out.writeObject( m_referredBy ); out.close(); sw.stop(); log.debug("serialization done - took "+sw); } catch( IOException e ) {
467468469470471472473474475476477
log.debug(" attr: "+key+"="+value); } in.close(); sw.stop(); log.debug("Read serialized data for "+name+" successfully in "+sw); p.setHasMetadata(); } catch( NoSuchAlgorithmException e ) {
553554555556557558559560561562563
{ log.fatal("No MD5 algorithm!?!"); } finally { sw.stop(); log.debug("serialization for "+p.getName()+" done - took "+sw); } }
137138139140141142143144145146147
counter++; } } } sw.stop(); if( log.isDebugEnabled() ) log.debug("Suggestion request for "+wikiName+" done in "+sw); return list; } /**