FileDocCategorySizeDatePackage
Benchmark.javaAPI DocAndroid 5.1 API1308Thu Mar 12 22:22:54 GMT 2015com.example.android.rs.computebench

Benchmark

public class Benchmark extends Object implements Runnable

Fields Summary
private final RenderScript
mRS
private ScriptC_compute_benchmark
mScript
Constructors Summary
public Benchmark(RenderScript rs, android.content.res.Resources res)

        mRS = rs;
        mScript = new ScriptC_compute_benchmark(mRS);
    
Methods Summary
public voidrun()

        long t = java.lang.System.currentTimeMillis();
        mScript.invoke_bench();
        mRS.finish();
        t = java.lang.System.currentTimeMillis() - t;
        android.util.Log.v("ComputeBench", "Total benchmark took " + t + " ms");