Skip to content

Commit

Permalink
Increase number of times loop is run to ensure that on newer devices …
Browse files Browse the repository at this point in the history
…the threshold in ms is also exceeded
  • Loading branch information
1951FDG committed Sep 25, 2019
1 parent c682b9a commit fcfd5c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void onClick(View v) {
}
break;
case R.id.button2:
for (int i = 0; i < 100; ++i) {
for (int i = 0; i < 200; ++i) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
readFile();
}
Expand All @@ -99,7 +99,7 @@ public void onClick(View v) {

private static double compute() {
double result = 0;
for (int i = 0; i < 2000000; ++i) {
for (int i = 0; i < 4000000; ++i) {
result += Math.acos(Math.cos(i));
result -= Math.asin(Math.sin(i));
}
Expand Down

0 comments on commit fcfd5c6

Please sign in to comment.