private void logMethodTimeout(String methodName, double timeoutSeconds) {
    System.err.printf(
      "[spock.lang.Timeout] Method '%s' timed out after %1.2f seconds.%n",
      methodName,
      timeoutSeconds
    );

    configuration.interruptAttemptListeners.forEach(Runnable::run);
  }
Times out a method invocation if it takes too long. The method invocation
will occur on the regular test framework thread. This can be important
for integration tests with thread-local state.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/extension/builtin/TimeoutInterceptor.java