kerneltest/e32test/prime/t_timer.cpp
branchRCL_3
changeset 39 2bb754abd467
parent 22 2f92ad2dc5db
equal deleted inserted replaced
36:bbf8bed59bcb 39:2bb754abd467
   288         do
   288         do
   289             {
   289             {
   290             t2.HomeTime();
   290             t2.HomeTime();
   291             }
   291             }
   292         while (t2==t1);
   292         while (t2==t1);
   293 #if defined(_DEBUG)
   293 
   294 		TDateTime dt=t2.DateTime();
   294 		if (t2 <= t1 && t1.MicroSecondsFrom(t2) > TTimeIntervalMicroSeconds(1000)) // HomeTime() only operates at ms precision
   295 		test.Printf(_L("%d:%d\r\n"),dt.Second(),dt.MicroSecond());
   295 			{
   296 #endif
   296 			test.Printf(_L("Time comparison failed\r\n"));
   297         test(t2>t1);
   297 			test.Printf(_L("Before: 0x%lx\r\n"), t1.Int64());
       
   298 			test.Printf(_L("After:  0x%lx\r\n"), t2.Int64());
       
   299 			test(t2>t1);
       
   300 			}
       
   301 
   298         t1=t2;
   302         t1=t2;
   299         }
   303         }
   300 #if defined(_DEBUG)
       
   301 	test.Printf(_L("\r\n"));
       
   302 #endif
       
   303     }
   304     }
   304 
   305 
   305 TInt AtTwice(TAny*)
   306 TInt AtTwice(TAny*)
   306 	{
   307 	{
   307 	RTimer t;
   308 	RTimer t;