public long getTimeInterval() { return timer.getTimeInterval() ; }
public long getTimeInterval() { return timer.getTimeInterval() ; }
private void printAtEnd() { long timeMilli = timer.getTimeInterval() ; String x = String.format("%,d %s: loaded in %,.2f seconds [%,.2f %s/s]", totalCount, units, timeMilli/1000.0F, 1000F*totalCount/timeMilli, units) ; println(summaryLabel, x) ; }
/** Stop timing and return the elapsed time in milliseconds */ public long endTimer() { if ( !inTimer ) throw new AtlasException("Not in timer") ; timeFinish = System.currentTimeMillis() ; inTimer = false ; return getTimeInterval() ; }
/** Stop timing and return the elapsed time in milliseconds */ public long endTimer() { if ( !inTimer ) throw new AtlasException("Not in timer") ; timeFinish = System.currentTimeMillis() ; inTimer = false ; return getTimeInterval() ; }
public void finishMessage() { // Elapsed. long timePoint = timer.getTimeInterval(); // *1000L is milli to second conversion if ( timePoint != 0 ) { double time = timePoint / 1000.0; long runAvgRate = (counterTotal * 1000L) / timePoint; print("Finished: %,d %s %.2fs (Avg: %,d)", counterTotal, label, time, runAvgRate); } else print("Finished: %,d %s (Avg: ----)", counterTotal, label); }
public void finishMessage() { // Elapsed. long timePoint = timer.getTimeInterval(); // *1000L is milli to second conversion if ( timePoint != 0 ) { double time = timePoint / 1000.0; long runAvgRate = (counterTotal * 1000L) / timePoint; print("Finished: %,d %s %.2fs (Avg: %,d)", counterTotal, label, time, runAvgRate); } else print("Finished: %,d %s (Avg: ----)", counterTotal, label); }
@Override public void finish() { // XXX getTimer().endTimer(); timeTotalMillis = getTimer().getTimeInterval(); }
public void finishLoad() { timer.endTimer() ; processFinishTime = timer.getTimeInterval() ; processTime = processFinishTime - processStartTime ; print("-- Finish %s load", itemsName) ; if ( totalDataItems > 0 ) print("** Completed: %,d %s loaded in %,.2f seconds [Rate: %,.2f per second]", totalDataItems, itemsName, processTime/1000.0F, 1000F*totalDataItems/processTime) ; EventManager.send(dataset, new Event(BulkLoader.evFinishBulkload, null)) ; }
private void printAtEnd() { long timeMilli = timer.getTimeInterval() ; println(summaryLabel, num(getAddCount())+ " triples: loaded in "+ num(timeMilli/1000.0F)+ " seconds ["+ num(1000F*getAddCount()/timeMilli)+ " triples/s]") ; }