Question: 2 . 2 0 Bob has a program that he wants to time with two sets of data, input _ data 1 and input _
Bob has a program that he wants to time with two sets of data, inputdata and inputdata 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 bobsprog inputdata
real ms
user ms
sys ms
s time lbobsprog inputdata
real mls
user ms
sys ms
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?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
