why is the delay required here we are supposed to find the time spent for sorting and not for the time spent in executing the delay function?