home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,595 of 2,978   
   Rod Pemberton to All   
   Re: High Speed IRQ Timer/Clock in C (2/2   
   28 Dec 07 13:05:15   
   
   [continued from previous message]   
      
   >   return ((double)ClockTicks / Frequency);   
   > }   
   >   
   >   
   > void _Timer_init()   
   > {   
   >   static int _was_initialized = 0;   
   >   if (_was_initialized++)   
   >     return;   
   >   TimerAlreadySet = false;   
   > }   
   > /* p2c: Note: Remember to call _Timer_init() in main program [215] */   
   >   
   >   
   >   
   > /* End. */   
   >   
   > void main()   
      
   int main(void)   
      
   > {   
   >   int i;   
   >   _Timer_init();   
   >   
   >   TimerOn(546);   
   >   for(i=0; i<100000; i++) {   
   > if (i%10000==0)   
   > printf("\n... %d", i);   
   >   }   
   >   TimerOff();   
   >   
      
   return(0);   
      
   > }   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca