Examples of time()


Examples of dcamj.utils.StopWatch.time()

      /*final DcamFrame lNewDcamFrame = lDcamFrameArray[lDcamFrameCounter];
      lDcamAcquisition.getBufferControl()
                      .attachExternalBuffers(lNewDcamFrame);/**/

    }
    final long lTimeInSeconds = lStopWatch.time(TimeUnit.SECONDS);
    final double lSpeed = lNumberOfIterations * lNumberOfFramesToCapture
                          / (lTimeInSeconds);
    System.out.format("acquisition speed: %g frames/s \n", lSpeed);

    while (lDcamAcquisition.isAcquiring())
View Full Code Here

Examples of net.sourceforge.cruisecontrol.util.TdTimer.time()

     */
    public static boolean waitForAll(int timeout) {
        TdTimer myTimer = new TdTimer();
        while (!ThreadQueue.isQueueIdle()) {
            sleep(sleepTime);
            if (myTimer.time() > timeout) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

Examples of org.apache.derby.impl.tools.planexporter.AccessDatabase.time()

               
                  if(access.initializeDataArray()){
                    access.createXMLFragment();
                    access.markTheDepth();
                    String stmt=access.statement();
                    String time=access.time();
                    access.closeConnection();

                    //advanced XSL feature
                    //possible occurrences are
                    //-adv -xml {path} -xsl {path} or
View Full Code Here

Examples of org.apache.derby.impl.tools.planexporter.AccessDatabase.time()

          access.markTheDepth();

          CreateXMLFile xml_file = new CreateXMLFile(access);
          xml_file.writeTheXMLFile(
              access.statement(),
              access.time(),
              access.getData(),
              SupportFilesSetup.getReadWriteURL(stmt_id + ".xml")
              .getPath(),
              null);
        }
View Full Code Here

Examples of org.apache.derby.impl.tools.planexporter.AccessDatabase.time()

        access.createXMLFragment();
        access.markTheDepth();
        CreateXMLFile create = new CreateXMLFile(access);
        create.writeTheXMLFile(
                access.statement(),
                access.time(),
                access.getData(),
                SupportFilesSetup.getReadWriteURL(stmtId + ".xml").getPath(),
                null);

        // If we have the required libraries for parsing XML files, verify
View Full Code Here

Examples of org.apache.jackrabbit.mk.simple.AscendingClock.time()

    public void testMillis() throws InterruptedException {
        long start, last;
        last = start = System.currentTimeMillis() + 10000;
        AscendingClock c = new AscendingClock(start);
        for (int i = 0; i < 10000; i++) {
            long t = c.time();
            assertTrue(t > last);
            last = t;
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.index.old.mk.simple.AscendingClock.time()

    public void testMillis() throws InterruptedException {
        long start, last;
        last = start = System.currentTimeMillis() + 10000;
        AscendingClock c = new AscendingClock(start);
        for (int i = 0; i < 10000; i++) {
            long t = c.time();
            assertTrue(t > last);
            last = t;
        }
    }
View Full Code Here

Examples of org.dbwiki.data.time.Version.time()

        statement.setString(6, ((ProvenanceImport)provenance).sourceURL());
      } else {
        statement.setString(6, null);
      }
      */
      statement.setLong(7, version.time());
      statement.execute();
      statement.close();
    } catch (java.sql.SQLException exception) {
      throw new WikiFatalException(exception);
    }
View Full Code Here

Examples of org.dbwiki.data.time.Version.time()

    for (int iVersion = 0; iVersion < versionIndex.size(); iVersion++) {
      Version version = versionIndex.get(iVersion);
      boolean matches = true;
      if (dateOp != null) {
        if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordAfter)) {
          matches = version.time() > startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBefore)) {
          matches = version.time() < endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordSince)) {
          matches = version.time() >= startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordUntil)) {
View Full Code Here

Examples of org.dbwiki.data.time.Version.time()

      boolean matches = true;
      if (dateOp != null) {
        if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordAfter)) {
          matches = version.time() > startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBefore)) {
          matches = version.time() < endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordSince)) {
          matches = version.time() >= startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordUntil)) {
          matches = version.time() <= endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBetween)) {
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.