Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>speed()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPEED()
 A comparison value used to determine the processor speed
------------------------------------------------------------------------------
 Syntax

     SPEED([<lMode>]) --> nCPUSpeed

 Argument

     <lMode>  If designated as .T., causes all interrupts, with the
     exception of the clock, to switch off..  The default value is "Leave
     interrupts on" (.F.).

 Returns

     SPEED() returns a percentage value to compare to a normal 4.77 MHz PC-
     XT, which corresponds to 100%.

 Description

     The function determines, in a precise fashion, the speed to compare to a
     4.77 MHz PC.  To make the measurement more precise, switch the
     interrupts off.  The only exceptions are the timer interrupts that
     refresh  working memory.

 Note

     Warning!  When you use the optional parameters to shut off all
     interrupts (with the exception of the timer interrupts) you cannot work
     simultaneously with the serial interface.  After you take the
     measurement, you can restore all interrupts.

 Examples

     .  For a normal AT:

        ? SPEED(.T.)         // 470  4.7 times PC

     .  Switch off interrupts in the same system:

        ? SPEED(.T.)         // 480  4.8 times PC


See Also: CPUTYPE() PCTYPE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson