public class ElasticTime extends ObjectScale time measurement to support individual execution schemes.
Due to the nature of the harness, the framework is full of timeouts waiting for things to happen. Given the number of modes of execution, environments and configurations there is, there are no right timeouts to balance the desire to abort operations that takes too long and necessity not to interrupt operations taking a bit more time to complete successfully.
To reflect that, use
-DElasticTime.factorand configure the factor to slow down / speed up the measured time for your executions. Floating point values are accepted too.
This implementation takes number of concurrent threads into account.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getSlowDownFactor()Get the factor by which we slow down time.
public long seconds(long secs)
public long milliseconds(long ms)
public double getSlowDownFactor()Get the factor by which we slow down time. Default is
1.0(no difference). Use
>1in case of slower environment,
<1in case of faster one.
- the factor by which we slow down time.