Examples of elapsedTime()


Examples of cc.mallet.util.Timing.elapsedTime()

      for (int fi = 0; fi < baseFg.factors().size(); fi++) {
        fg.multiplyBy (baseFg.getFactor (fi));
      }
      assertEquals (val, fg.logValue (assn), 1e-5);
    }
    long time1 = timing.elapsedTime ();
    timing.tick ("No-expansion time");

    for (int rep = 0; rep < numReps; rep++) {
      FactorGraph fg = new FactorGraph ();
      for (int fi = 0; fi < baseFg.factors().size(); fi++) {
View Full Code Here

Examples of com.facebook.presto.util.CpuTimer.elapsedTime()

                processCalls.incrementAndGet();
                CpuTimer timer = new CpuTimer();
                ListenableFuture<?> blocked = split.processFor(SPLIT_RUN_QUANTA);

                CpuTimer.CpuDuration elapsed = timer.elapsedTime();

                // update priority level base on total thread usage of task
                long durationNanos = elapsed.getWall().roundTo(TimeUnit.NANOSECONDS);
                long threadUsageNanos = taskHandle.addThreadUsageNanos(durationNanos);
                this.threadUsageNanos.set(threadUsageNanos);
View Full Code Here

Examples of com.google.common.base.Stopwatch.elapsedTime()

            connectionBean.terminateSession();
            return true;
          }
        }
      }
    } while (stopwatch.elapsedTime(timeoutUnit) < timeout);

    return false;
  }

  /**
 
View Full Code Here

Examples of com.sleepycat.je.rep.txn.ReplayTxn.elapsedTime()

                if (repTxn.getRepGroupDbChange() && canRefreshGroup(repTxn)) {
                    repNode.refreshCachedGroup();
                    repNode.recalculateGlobalCBVLSN();
                }

                nElapsedTxnTime.add(repTxn.elapsedTime());
            } else if (LOG_TXN_ABORT.equalsType(entryType)) {

                nAborts.increment();
                final TxnAbort masterAbort = (TxnAbort) logEntry.getMainItem();
                final ReplicationContext abortContext =
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.CompilerStats.elapsedTime()

      final int length = this.main.maxRepetition;
      long sum = 0;
      long parseSum = 0, resolveSum = 0, analyzeSum = 0, generateSum = 0;
      for (int i = 1, max = length - 1; i < max; i++) {
        CompilerStats stats = this.main.compilerStats[i];
        sum += stats.elapsedTime();
        parseSum += stats.parseTime;
        resolveSum += stats.resolveTime;
        analyzeSum += stats.analyzeTime;
        generateSum += stats.generateTime;
      }
View Full Code Here

Examples of org.hsqldb.lib.StopWatch.elapsedTime()

            cConnection = null;
            sStatement  = null;
            cConnection = DriverManager.getConnection(url + filepath, user,
                    password);

            System.out.println("connected: " + sw.elapsedTime());
            sw.zero();

            sStatement = cConnection.createStatement();

            java.util.Random randomgen = new java.util.Random();
View Full Code Here

Examples of org.hsqldb.lib.StopWatch.elapsedTime()

                ps.setString(8, nextrandom + varfiller);
                ps.execute();

                if (reportProgress && (i + 1) % 10000 == 0) {
                    System.out.println("Insert " + (i + 1) + " : "
                                       + sw.elapsedTime());
                }

                // delete and add 4000 rows to introduce fragmentation
                if (deleteWhileInsert && i != 0
                        && i % deleteWhileInsertInterval == 0) {
View Full Code Here

Examples of org.hsqldb.lib.StopWatch.elapsedTime()

//            sStatement.execute("INSERT INTO test SELECT * FROM temptest;");
//            sStatement.execute("DROP TABLE temptest;");
//            sStatement.execute(ddl7);
            System.out.println("Total insert: " + i);
            System.out.println("Insert time: " + sw.elapsedTime() + " rps: "
                               + (i * 1000 / sw.elapsedTime()));
            sw.zero();

            if (!network) {
                sStatement.execute("SHUTDOWN");
View Full Code Here

Examples of org.hsqldb.lib.StopWatch.elapsedTime()

//            sStatement.execute("INSERT INTO test SELECT * FROM temptest;");
//            sStatement.execute("DROP TABLE temptest;");
//            sStatement.execute(ddl7);
            System.out.println("Total insert: " + i);
            System.out.println("Insert time: " + sw.elapsedTime() + " rps: "
                               + (i * 1000 / sw.elapsedTime()));
            sw.zero();

            if (!network) {
                sStatement.execute("SHUTDOWN");
            }
View Full Code Here

Examples of org.hsqldb.lib.StopWatch.elapsedTime()

            if (!network) {
                sStatement.execute("SHUTDOWN");
            }

            cConnection.close();
            System.out.println("Shutdown Time: " + sw.elapsedTime());
        } catch (SQLException e) {
            System.out.println(e.getMessage());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.