/** * Decorates the invocation method with timing. */ @Override public final void invoke() { long t = System.nanoTime(); invokeTimed(t); t = System.nanoTime() - t; if(t > DEBUG_DURATION_LIMIT_NANOS) { LOG.log( t > WARN_DURATION_LIMIT_NANOS ? Level.WARNING : Level.FINE, "Fiber \"" + this + "\" invocation duration (" + TimeUnit.NANOSECONDS.toMillis(t) + "[ms]) exceeds " + "the limit (" + TimeUnit.NANOSECONDS.toMillis(SOFT_DURATION_LIMIT_NANOS) + "[ms])" ); } }