target.java

来自「Java source code for optimization toolki」· Java 代码 · 共 23 行

JAVA
23
字号
/*****************************************************************************Interface jnt.Bench.Target *****************************************************************************/package jnt.Bench;/** Interface for a Benchmark Target.Code to be measured by the Bench framework should provide a class implementingthis interface.  Place the code to be measured in the execute method.@author Bruce R. Miller (bruce.miller@nist.gov)@author Contribution of the National Institute of Standards and Technology,@author not subject to copyright.*/public interface Target {  /** The code to be measured is placed in this method.    * @return null lets jnt.Bench.Bench handle the timings.    * Otherwise, return an array containing the one or more measured values.    * @see jnt.Bench.Bench [start|stop|reset]Timer methods for measurement tools.    */      public double[] execute(Bench bench) throws Exception;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?