@groovy.util.logging.Slf4j class Timer extends java.lang.Object
Utility class for monitoring how long the application takes to start.
Constructor and description |
---|
Timer() |
Type Params | Return Type | Name and description |
---|---|---|
|
BigDecimal |
getElapsedTime() |
|
BigDecimal |
getTotalTime() |
|
Timer |
startClock() Mark the current time. |
|
Timer |
stopClock() Mark the current time and print how much time has elapsed since starting the clock. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Mark the current time.
Mark the current time and print how much time has elapsed since starting the clock.