pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:12537:    float t1=time(t0);    int hrt1=gethrtime();    sleep(tts);    int hrt2=gethrtime();    float t2=time(t0);       float e=(hrt2-hrt1)*1e-6;    float f=t2-t1;       array r=({}); -  if (e<tts-0.1 || e>tts+0.1) +  if (e<tts-0.1 || e>tts+0.2)    r+=({sprintf("hrtime %.6f, %+.6f",e,e-tts)});    -  if (f<tts-0.1 || f>tts+0.1) +  if (f<tts-0.1 || f>tts+0.2)    r+=({sprintf("timeofday %.6f, %+.6f",f,f-tts)});       if (sizeof(r)) return r*" / ";    return "no error";   ]],"no error")      // - trace   test_do(trace(0))   test_eq(trace(0),0)