]> git.saurik.com Git - wxWidgets.git/commitdiff
Slight changes to the stopwatch test
authorGuillermo Rodriguez Garcia <guille@iies.es>
Mon, 6 Mar 2000 15:08:17 +0000 (15:08 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Mon, 6 Mar 2000 15:08:17 +0000 (15:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp

index a845e71b01f4efc88475061b2fd7a37418fe0d62..37042997953f80cbb3726bf690c044eeae79c3e6 100644 (file)
@@ -755,9 +755,13 @@ static void TestStopWatch()
     for ( size_t n = 0; n < 70; n++ )
     {
         sw2.Start();
-        if ( sw.Time() < 0 || sw2.Time() < 0 )
+
+        for ( size_t m = 0; m < 100000; m++ )
         {
-            puts("\ntime is negative - ERROR!");
+            if ( sw.Time() < 0 || sw2.Time() < 0 )
+            {
+                puts("\ntime is negative - ERROR!");
+            }
         }
 
         putchar('.');