public String toString() { return "StopWatch={elapsedTimeInSeconds=" + getElapsedSeconds() + "}"; }
public double getElapsedSeconds() { return getElapsedTime() / 1000000000.0f; }
protected void runAllGoldReports() throws Exception { if ( "true".equals( ClassicEngineBoot.getInstance().getGlobalConfig().getConfigProperty( ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY ) ) ) { Assert.fail( "Dont run GoldenSample tests with the new layout system. These tests are not platform independent." ); } final int numThreads = Math.max( 1, ClassicEngineBoot.getInstance().getExtendedConfig().getIntProperty( "org.pentaho.reporting.engine.classic.core.testsupport.gold.MaxWorkerThreads", Math.max( 1, Runtime.getRuntime().availableProcessors() - 1 ) ) ); StopWatch w = new StopWatch(); w.start(); try { if ( numThreads == 1 ) { runAllGoldReportsSerial(); } else { runAllGoldReportsInParallel( numThreads ); } } finally { System.out.println( w.toString() ); } }
public void start() { if ( isStarted() ) { return; } super.start(); if ( firstStartTime == 0 ) { firstStartTime = super.getStartTime(); } restartCount += 1; }
final StopWatch stopWatch = StopWatch.startNew(); if ( mod.initialize( this.booter ) ) { if ( LOGGER.isDebugEnabled() ) { times.add( new BootTimeEntry( mod.getModule().getModuleClass(), stopWatch.getElapsedTime() ) );
public void close() { stop(); } }
public void reset() { super.reset(); firstStartTime = 0; }
public double getStartMilliseconds() { return getStartTime() / 1000000.0f; }
public void start() { if (isStarted()) { return; } super.start(); if (firstStartTime == 0) { firstStartTime = super.getStartTime(); } restartCount += 1; }
final StopWatch stopWatch = StopWatch.startNew(); if (mod.initialize(this.booter)) times.add(new BootTimeEntry(mod.getModule().getModuleClass(), stopWatch.getElapsedTime()));
public void close() { stop(); } }
public void reset() { super.reset(); firstStartTime = 0; }
public double getStartMilliseconds() { return getStartTime() / 1000000.0f; }
public void stop( boolean pause ) { super.stop(); if ( pause ) { return; } if ( getElapsedMilliseconds() < loggingThreshold ) { return; } if ( firstStartTime == 0 ) { // this stopwatch was never started .. return; } String logMessage; if ( message == null ) { logMessage = String.format( "start[%d] time[%d] tag[%s] count[%d]", getStartTime(), getElapsedTime(), getTag(), getRestartCount() ); } else { logMessage = String .format( "start[%d] time[%d] tag[%s] count[%d] message[%s]", getStartTime(), getElapsedTime(), getTag(), getRestartCount(), getMessage() ); } doLog( logMessage ); reset(); }
public double getElapsedMilliseconds() { return getElapsedTime() / 1000000.0f; }
public String toString() { return "StopWatch={elapsedTimeInSeconds=" + getElapsedSeconds() + "}"; }
public void stop(boolean pause) { super.stop(); if (pause) { return; } if (getElapsedMilliseconds() < loggingThreshold) { return; } if (firstStartTime == 0) { // this stopwatch was never started .. return; } String logMessage; if (message == null) { logMessage = String.format("start[%d] time[%d] tag[%s] count[%d]", getStartTime(), getElapsedTime(), getTag(), getRestartCount()); } else { logMessage = String.format("start[%d] time[%d] tag[%s] count[%d] message[%s]", getStartTime(), getElapsedTime(), getTag(), getRestartCount(), getMessage()); } doLog(logMessage); reset(); }
public double getElapsedSeconds() { return getElapsedTime() / 1000000000.0f; }