Backtesting time delay

 
Does the following code work in strategy tester. In other words, will it delay time properly to provide a decent back test?

static int _time_waiting=0
if ( ... ) 
   _time_waiting = TimeLocal() + 10; 
if ( TimeLocal() >= _time_waiting )

Reason: