alchemist-interfaces / it.unibo.alchemist.model.interfaces / BenchmarkableEnvironment

BenchmarkableEnvironment

interface BenchmarkableEnvironment<T : Any!, P : Position<out P>!> : Environment<T, P>

An environment which provides a mean to get infos about its performances.

Functions

enableBenchmark

Call this method to tell this environment that it should record its performances. Please note that some environments might ignore this message if this method is not called before starting using the environment itself.

abstract fun enableBenchmark(): Unit

getBenchmarkResult

abstract fun getBenchmarkResult(): Double