Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - cpuspeed() return the relative cpu speed value http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 cpuspeed()          Return the relative CPU speed value
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func ulong cpuspeed extern

 Arguments
   None.

 Return
   A measure of CPU speed.

 Description
   This function returns a value which is relative to the current processor
   speed. This is not the actual speed, but can be used to ajust timing loops
   for "turbo" and "normal" machines.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_cpuspeed
   ? "The relative speed of this machine is", istr( cpuspeed() )
   endproc

   proc main
   Test_cpuspeed()
   endproc

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