Define starting snapshot of the test,
Define ending snapshot of the test,
Define as begin snapshot for 30 s interval, as the corresponding server load value
Define as end snapshot for 30 s interval, as the corresponding server load value
 For >= and < e
  If does not differ from by 10%
   Record the corresponding SQL Elapsed Time,
  
 done
Algorithm 2