report
Converts time in seconds to an Elapsed instance.
Converts time in milliseconds to an Elapsed instance.
Invokes the wrapped function and returns the time in seconds it took to complete as a Double.
Converts time in milliseconds to seconds.
Converts time in nanoseconds to seconds.
Converts time in seconds to milliseconds.
Generates a report for timing of segments of code defined by block names.
Generates a report for timing of segments of code defined by block names.
Use the block(name) method to define segments of application context during the invocation of the function.
Convenience method to sleep a specific amount of time in seconds.
Waits for condition
to return true.
Waits for condition
to return true. This method will wait
time
(in seconds) for the condition and will return false
if the condition is not met within that time. Further, a negative value
for time
will cause the wait to occur until the condition
is true.
The time to wait for the condition to return true.
The recycle period between checks. Defaults to 0.01s.
The start time in milliseconds since epoc. Defaults to System.currentTimeMillis.
If true, throws a java.util.concurrent.TimeoutException upon timeout. Defaults to false.
The functional condition that must return true.