Code example for Allocation

Methods: ioSendOutput

0
        return b2;
    } 
 
    private synchronized void filterAlloc(Allocation alloc, Sampler sampler) {
        long t = java.lang.System.currentTimeMillis();
        mScript.invoke_setSampleData(alloc, mTwoByTwoAlloc, sampler);
        mScript.forEach_root(alloc);
        alloc.ioSendOutput();
        mRS.finish();
        t = java.lang.System.currentTimeMillis() - t;
        Log.i(TAG, "Filter time is: " + t + " ms");
    } 
 
    public void benchmark(View v) {
        /*filterAlloc(); 
        long t = java.lang.System.currentTimeMillis(); 
        filterAlloc(); 
        t = java.lang.System.currentTimeMillis() - t; 
        mDisplayView.invalidate(); 
        mBenchmarkResult.setText("Result: " + t + " ms");*/ 
    }