Package dcamj.utils

Examples of dcamj.utils.StopWatch


      }
    });

    System.gc();
    final StopWatch lStopWatch = StopWatch.start();
    for (int i = 0; i < lNumberOfIterations; i++)
    {
      // System.out.println("ITERATION=" + i);
      assertTrue(lDcamAcquisition.startAcquisitionfalse,
                                                    true,
                                                    lDcamFrameArray[lDcamFrameCounter]));
      // lDcamAcquisition.stopAcquisition();

      // Thread.sleep(1000);
      lDcamFrameCounter = (lDcamFrameCounter + 1) % lNumerOfDcamFrames;
      /*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

TOP

Related Classes of dcamj.utils.StopWatch

Copyright © 2018 www.massapicom. 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.