/** * Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run. * * @param timeable Code that is being timed * @return Measured duration in seconds for timeable to complete. */ public double setToTime(Runnable timeable){ return noLabelsChild.setToTime(timeable); }
/** * Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run. * * @param timeable Code that is being timed * @return Result returned by callable. */ public <E> E setToTime(Callable<E> timeable){ return noLabelsChild.setToTime(timeable); }
/** * Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run. * * @param timeable Code that is being timed * @return Measured duration in seconds for timeable to complete. */ public double setToTime(Runnable timeable){ return noLabelsChild.setToTime(timeable); }
/** * Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run. * * @param timeable Code that is being timed * @return Result returned by callable. */ public <E> E setToTime(Callable<E> timeable){ return noLabelsChild.setToTime(timeable); }