kerneltest/e32test/misc/t_cputime.cpp
changeset 201 43365a9b78a3
parent 109 b3a1d9898418
equal deleted inserted replaced
200:73ea206103e6 201:43365a9b78a3
   260 	us = time.Int64() - time2.Int64();
   260 	us = time.Int64() - time2.Int64();
   261 	test.Printf(_L("Time %dus\n"), us);
   261 	test.Printf(_L("Time %dus\n"), us);
   262 	test(100*us >= 98*KShortWait); // left limit
   262 	test(100*us >= 98*KShortWait); // left limit
   263 	test(us - KShortWait <= user_after_tolerance); // right limit
   263 	test(us - KShortWait <= user_after_tolerance); // right limit
   264 
   264 
       
   265 	FailIfError(thread.GetCpuTime(time));
   265 	User::After(KLongWait);
   266 	User::After(KLongWait);
   266 	FailIfError(thread.GetCpuTime(time2));
   267 	FailIfError(thread.GetCpuTime(time2));
   267 	us = time2.Int64() - time.Int64();
   268 	us = time2.Int64() - time.Int64();
   268 	test.Printf(_L("Time %dus\n"), us);
   269 	test.Printf(_L("Time %dus\n"), us);
   269 	test(100*us >= 98*KLongWait); // left limit
   270 	test(100*us >= 98*KLongWait); // left limit