Package org.openjdk.jmh.annotations
Annotation Type Timeout
-
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Inherited public @interface Timeout
Timeout annotation allows to set the default timeout parameters for the benchmark.
This annotation may be put at
Benchmarkmethod to have effect on that method only, or at the enclosing class instance to have the effect over allBenchmarkmethods in the class. This annotation may be overridden with the runtime options.
-
-
-
timeUnit
TimeUnit timeUnit
- Returns:
- Time unit for timeout duration
- Default:
- java.util.concurrent.TimeUnit.SECONDS
-
-