The next two lines indicate that the court is late for two seconds to perform the SELECT statement:
Waitfor delay '00: 00: 02' SELECT DATEADD (D, -1, getDate ())