public void start() { if ( depth == 0 ) timer.startTimer(); depth++; } public void finish() {
public void start() { timer.startTimer(); lastTime = 0; }
@Override public void start() { timer.startTimer(); }
public void start() { timer.startTimer(); lastTime = 0; }
public void startTimer() { timer.startTimer() ; }
public void startTimer() { timer.startTimer() ; }
/** Format passed arguments * @param showProgress */ public SinkProgress(String label, String units, int interval, boolean showProgress) { this.label = label ; this.units = units ; this.batchInterval = interval ; this.showProgress = showProgress ; this.format = "Add: %,d %s (Batch: %,d / Run: %,d)" ; this.timer = new Timer() ; timer.startTimer() ; }
private void start() { if ( timer == null ) { timer = new Timer() ; timer.startTimer() ; milliseconds = NotFinished ; } }
@Override public void start() { // XXX getTimer().startTimer(); lastTime = 0; }
/** Time an operation. Return the elapsed time in milliseconds. */ public static long time(Runnable action) { Timer timer = new Timer(); timer.startTimer(); action.run(); long x = timer.endTimer(); return x; } }
/** Time an operation. Return the elapsed time in milliseconds. */ public static long time(Runnable action) { Timer timer = new Timer(); timer.startTimer(); action.run(); long x = timer.endTimer(); return x; } }
@Override public void startSection() { if ( inSection ) throw new TDBException("startSection: Already in section"); inSection = true; sectionCounter++; sectionTimer = new Timer(); sectionTimer.startTimer(); sectionTimeInMillis = 0; sectionTickCounter = 0; }
public void resetTimer() { if ( timer != null ) timer.endTimer() ; timer = new Timer() ; timer.startTimer(); }
public void resetTimer() { if ( timer != null ) timer.endTimer() ; timer = new Timer() ; timer.startTimer(); }
public void startLoad() { EventManager.send(dataset, new Event(BulkLoader.evStartBulkload, null)) ; timer.startTimer() ; processStartTime = timer.readTimer() ; }
@Override public void startBulk() { this.timer = new Timer(); timer.startTimer(); if ( bulkUseTransaction() ) dsg.begin(TxnType.WRITE); }
/** Load the contents of a list of URLs into a model - may not be as efficient as bulk loading into a TDB graph */ public static void loadModel(Model model, List<String> urls, boolean showProgress) { Timer timer = new Timer() ; timer.startTimer() ; for ( String s : urls ) { if ( showProgress ) System.out.printf("Load: %s\n", s) ; loadModel(model, s, showProgress) ; } long time = timer.endTimer() ; if ( showProgress ) System.out.printf("Time for load: %.2fs\n", time/1000.0) ; model.close(); }
@Override public void createSecondaryIndexes(TupleIndex primaryIndex , TupleIndex[] secondaryIndexes) { monitor.print("** Parallel index building") ; Timer timer = new Timer() ; timer.startTimer() ; int semaCount = 0 ; Semaphore sema = new Semaphore(0) ; for ( TupleIndex index : secondaryIndexes ) { if ( index != null ) { Runnable builder = setup(sema, primaryIndex, index, index.getMapping()) ; new Thread(builder).start() ; semaCount++ ; } } try { sema.acquire(semaCount) ; } catch (InterruptedException ex) { ex.printStackTrace(); } long time = timer.readTimer() ; timer.endTimer() ; monitor.print("Time for parallel indexing: %.2fs\n", time/1000.0) ; }
@Override public void createSecondaryIndexes(TupleIndex primaryIndex , TupleIndex[] secondaryIndexes) { Timer timer = new Timer() ; timer.startTimer() ; long time1 = timer.readTimer() ; LoaderNodeTupleTable.copyIndex(primaryIndex.all(), secondaryIndexes, "All", monitor) ; long time2 = timer.readTimer() ; monitor.print("Time for all indexes: %.2fs\n", (time2-time1)/1000.0) ; } }
@Override public void createSecondaryIndexes(TupleIndex primaryIndex , TupleIndex[] secondaryIndexes) { Timer timer = new Timer() ; timer.startTimer() ; for ( TupleIndex index : secondaryIndexes ) { if ( index != null ) { long time1 = timer.readTimer() ; LoaderNodeTupleTable.copyIndex(primaryIndex.all(), new TupleIndex[]{index}, index.getMapping(), monitor) ; long time2 = timer.readTimer() ; // if ( printTiming ) // printf("Time for %s indexing: %.2fs\n", index.getLabel(), (time2-time1)/1000.0) ; // if ( printTiming ) // printer.println() ; } } } }