Class Timer
java.lang.Object
org.rcsb.strucmotif.domain.result.Timer
Tracks timings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetMeasuredTime(TimeUnit timeUnit) Retrieve the measured time.longRetrieve the measured time in milliseconds.voidstart()Start the time.voidstop()Stop the time and 'freeze' the measurement for later retrieval/output.
-
Constructor Details
-
Timer
public Timer()
-
-
Method Details
-
start
public void start()Start the time. -
stop
public void stop()Stop the time and 'freeze' the measurement for later retrieval/output. -
getMillisecondTime
public long getMillisecondTime()Retrieve the measured time in milliseconds.- Returns:
- a long in ms
-
getMeasuredTime
Retrieve the measured time.- Parameters:
timeUnit- theTimeUnitin which to output- Returns:
- a long of the desired granularity
-