kerneltest/e32test/prime/t_timer.cpp
changeset 109 b3a1d9898418
parent 102 ef2a444a7410
child 152 657f875b013e
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
   289             {
   289             {
   290             t2.HomeTime();
   290             t2.HomeTime();
   291             }
   291             }
   292         while (t2==t1);
   292         while (t2==t1);
   293 
   293 
   294 		if (t2 <= t1)
   294 		if (t2 <= t1 && t1.MicroSecondsFrom(t2) > TTimeIntervalMicroSeconds(1000)) // HomeTime() only operates at ms precision
   295 			{
   295 			{
   296 			test.Printf(_L("Time comparison failed\r\n"));
   296 			test.Printf(_L("Time comparison failed\r\n"));
   297 			test.Printf(_L("Before: 0x%lx\r\n"), t1.Int64());
   297 			test.Printf(_L("Before: 0x%lx\r\n"), t1.Int64());
   298 			test.Printf(_L("After:  0x%lx\r\n"), t2.Int64());
   298 			test.Printf(_L("After:  0x%lx\r\n"), t2.Int64());
   299 			test(t2>t1);
   299 			test(t2>t1);