0

Plz somebody tell me how much time it takes in one loop execution

for(int x=1;x<=5;x++) { System. out. print(x); } what time is taken to print the first value of x?

12th Nov 2017, 2:56 PM
Vibhas Pandey
Vibhas Pandey - avatar
4 Answers
+ 2
Real time is relative, depend of the device on you run it
12th Nov 2017, 4:09 PM
Daniel
Daniel - avatar
+ 2
You will need to benchmark it. Than you will find.
12th Nov 2017, 5:42 PM
~Sudo Bash
~Sudo Bash - avatar
0
thanx Daniel
12th Nov 2017, 5:39 PM
Vibhas Pandey
Vibhas Pandey - avatar
0
okay I will thanks anyway
12th Nov 2017, 5:44 PM
Vibhas Pandey
Vibhas Pandey - avatar