Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>biostime() return the time of day</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
biostime()               Return the Time of Day

 #include   <bios.h>

 long       biostime(cmd,newtime);
 int        cmd;                         Operation to perform
 long       newtime;                     Time

    biostime() either reads or sets the BIOS timer.  The timer is
    counting ticks since midnight at a rate of approximately 18.2 ticks
    per second.  If 'cmd' = 0, biostime() returns the current value of
    the timer.  If 'cmd' = 1, the timer is set to the long value in
    'newtime'.

    Returns:    If 'cmd' = 0, the timer's current value is returned.

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