]> git.sur5r.net Git - cc65/commitdiff
The name of the CLOCKS_PER_SEC macro was wrong in the last version. This got
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 25 Jul 2000 20:15:38 +0000 (20:15 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 25 Jul 2000 20:15:38 +0000 (20:15 +0000)
fixed in the time.h header but not in the sample program.

git-svn-id: svn://svn.cc65.org/cc65/trunk@197 b7a2c559-68d2-44c3-8de9-860c34a00d81

samples/nachtm.c

index 816aa9fd7fb28246088c48a9b0cf4fe03024ebe4..9663b3df665a29119c8fa1d8da801f2c590f99c6 100644 (file)
@@ -1035,7 +1035,7 @@ static void TimeSync (void)
 static void DisplayTime (void)
 /* Display the running time */
 {
-    clock_t Time = (clock () - StartTime) / CLOCKS_PER_TICK;
+    clock_t Time = (clock () - StartTime) / CLOCKS_PER_SEC;
     unsigned Sec = Time % 60;
     unsigned Min = Time / 60;
 
@@ -1063,7 +1063,7 @@ int main (void)
     unsigned char       I;
     unsigned char       Tone;
     unsigned char       Octave;
-    unsigned           Val;    
+    unsigned           Val;
     struct __sid_voice*        Voice;
     VoiceCtrl*         VC;