Question: 2 . 2 0 Bob has a program that he wants to time with two sets of data, input _ data 1 and input _

2.20 Bob has a program that he wants to time with two sets of data, input_data1 and input_data2. To get some idea of what to expect before adding timing functions to the code he's interested in, he runs the program with two sets of data and the Unix shell command time:
s time ./bobs_prog input_data1
real 0m0.001s
user 0m0.001s
sys 0m0.000s
s time .lbobs_prog input_data2
real 1ml.234s
user 1m0.001s
sys 0m0.111s
The timer function Bob is going to use in his program has millisecond resolution. Should Bob use it to time his program with the first set of data? What about the second set of data? Why or why not?
2 . 2 0 Bob has a program that he wants to time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!