Any idea hot to add a delay in tester autoconfiguration - page 3

 
Chi Yuen Tseung:

use the "loop" sleep method.


***

int OnInit(void)
  {
   uint _sleeptime = SleepTime;
   if (_sleeptime > 60) _sleeptime = 60;
   Print("Sleeping for " , _sleeptime , " seconds...");
   uint _time_waiting = GetTickCount() + _sleeptime * 1000;
   while ( GetTickCount() < _time_waiting ){}
   Print("Wake up.");
   return(INIT_SUCCEEDED);
  }