Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>ret_time()</b> c_exam03 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RET_TIME()                                                          C_EXAM03
   Returns the lower 2 bytes of the BIOS time.

   Syntax
         nCurrBIOSTime = RET_TIME()

   Arguments
         None

   Returns
         nCurrBIOSTime  Returns the low word of the IBM clock time.

   Description
         All IBM microcomputers use the Intel timer chip to tally pulses from
         the systems clock. Each pulse of the clock occurs 18.2 times per
         second. So every 18.2 pulses, the BIOS time is changed. This
         function returns the lower two bytes (or word) of the BIOS time. By
         issuing this function twice, subtracting the first from the second
         and dividing by 18.2, you can determine the number of seconds that
         have elapsed.

See Also: TIME_SET() TIME_START() TIME_STOP()

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