Back to project page cube-sdk.
The source code is released under:
Apache License
If you think the Android project cube-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package in.srain.cube.image; /*w ww. jav a 2s .co m*/ public class ImagePerformanceStatistics { private static int sSAMPLE_NUM = 0; public static void setSample(int num) { sSAMPLE_NUM = num; } public static boolean sample(int id) { return sSAMPLE_NUM != 0 && id % sSAMPLE_NUM == 0; } }