Tabnine Logo
StatsUtils.convertTime
Code IndexAdd Tabnine to your IDE (free)

How to use
convertTime
method
in
net.semanticmetadata.lire.utils.StatsUtils

Best Java code snippets using net.semanticmetadata.lire.utils.StatsUtils.convertTime (Showing top 4 results out of 315)

origin: dermotte/LIRE

public void run() {
  long end, gap = 1000 * monitoringInterval;
  long start = System.currentTimeMillis();
  try {
    Thread.sleep(gap); // wait xx seconds
  } catch (InterruptedException e) {
    e.printStackTrace();
  }
  while (isRunning) {
    try {
      // print the current status:
      end = System.currentTimeMillis() - start;
      System.out.printf("Analyzed %d images in %s ~ %3.2f ms each. (queue size is %d)\n", overallCount, StatsUtils.convertTime(end), ((overallCount > 0) ? ((float) end / (float) overallCount) : -1f), queue.size());
      Thread.sleep(gap); // wait xx seconds
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
}
origin: dermotte/LIRE

public void run() {
  long end, gap = 1000 * monitoringInterval;
  long start = System.currentTimeMillis();
  try {
    Thread.sleep(gap); // wait xx seconds
  } catch (InterruptedException e) {
    e.printStackTrace();
  }
  while (isRunning) {
    try {
      // print the current status:
      end = System.currentTimeMillis() - start;
      System.out.printf("Analyzed %d images in %s ~ %3.2f ms each. (queue size is %d)\n", overallCount, StatsUtils.convertTime(end), ((overallCount > 0) ? ((float) end / (float) overallCount) : -1f), queue.size());
      Thread.sleep(gap); // wait xx seconds
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
}
origin: dermotte/LIRE

    count++;
    if (count%1000==0) {
      System.out.printf("Processed %d images took %s minutes, ~%.2f ms per image.\n", (int) count, StatsUtils.convertTime(sw.getTimeSinceStart()), (double) sw.getTimeSinceStart()/count);
  System.out.printf("\nIt's finished. Processing %d images took %s minutes, ~%.2f ms per image.\n", (int) count, StatsUtils.convertTime(sw.getTime()), (double) sw.getTime()/count);
} catch (FileNotFoundException e) {
  e.printStackTrace();
origin: dermotte/LIRE

    count++;
    if (count%1000==0) {
      System.out.printf("Processed %d images took %s minutes, ~%.2f ms per image.\n", (int) count, StatsUtils.convertTime(sw.getTimeSinceStart()), (double) sw.getTimeSinceStart()/count);
  System.out.printf("\nIt's finished. Processing %d images took %s minutes, ~%.2f ms per image.\n", (int) count, StatsUtils.convertTime(sw.getTime()), (double) sw.getTime()/count);
} catch (FileNotFoundException e) {
  e.printStackTrace();
net.semanticmetadata.lire.utilsStatsUtilsconvertTime

Popular methods of StatsUtils

  • clamp
    Simple clamp function for floats.
  • drawSample
    Draws a set if size size of sample number from 0 to maximum, following an even distribution. Each dr

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JComboBox (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now