Class Timings

java.lang.Object
org.rcsb.strucmotif.domain.result.Timings

public class Timings extends Object
A helper class keeping track of internal timings. Useful for development and diagnosis. All but the query timer need to be started at an appropriate time during the query. 'Overall' query timer is started upon creation of this class. All timers need to be explicitly stopped.
  • Constructor Details

    • Timings

      public Timings()
      Constructs a new timer instance. Immediately starts the query timer.
  • Method Details

    • pathsStart

      public void pathsStart()
      Start the path assembly timer.
    • pathsStop

      public void pathsStop()
      Stop the path assembly timer.
    • getPathsTime

      public long getPathsTime()
      Get the path assembly time in ms.
      Returns:
      a long
    • scoreHitsStart

      public void scoreHitsStart()
      Start the hit scoring timer.
    • scoreHitsStop

      public void scoreHitsStop()
      Stop the hit scoring timer.
    • getScoreHitsTime

      public long getScoreHitsTime()
      Get the hit scoring time in ms.
      Returns:
      a long
    • queryStop

      public void queryStop()
      Stop the overall query timer.
    • getQueryTime

      public long getQueryTime()
      Get the overall query timer in ms.
      Returns:
      a long