Class Timings
java.lang.Object
org.rcsb.strucmotif.domain.result.Timings
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the path assembly time in ms.longGet the overall query timer in ms.longGet the hit scoring time in ms.voidStart the path assembly timer.voidStop the path assembly timer.voidStop the overall query timer.voidStart the hit scoring timer.voidStop the hit scoring timer.
-
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
-