]> git.sur5r.net Git - cc65/commitdiff
Print a banner
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 21 Dec 2003 12:51:59 +0000 (12:51 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 21 Dec 2003 12:51:59 +0000 (12:51 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2808 b7a2c559-68d2-44c3-8de9-860c34a00d81

samples/sieve.c

index 6c6c4a923d88549bcaa6ac40075ea502971fb04e..cb6783c935ad4e997fdb76c928301b7c439a1451 100644 (file)
@@ -26,7 +26,7 @@ static unsigned char Sieve[COUNT];
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                          Code                                    */
 /*****************************************************************************/
 
 
@@ -35,7 +35,7 @@ static unsigned char Sieve[COUNT];
 
 
 
-int main (void)                                              
+int main (void)
 {
     /* Clock variable */
     clock_t Ticks;
@@ -45,6 +45,11 @@ int main (void)
     register unsigned      I;
     register unsigned      J;
 
+    /* Output a header */
+    printf ("Sieve benchmark - calculating primes\n");
+    printf ("between 2 and %u\n", COUNT);
+    printf ("Please wait patiently ...\n");
+
     /* Read the clock */
     Ticks = clock();