BRender x86 Installation Guide:Platform- Specific Functions:4.3 Reading the System Clock
Next|Prev|Up
DOSClockBegin()
DOSClockRead()
DOSClockEnd()

4.3 Reading the System Clock



DOSClockBegin()

Description:
Begin support for DOSClock. Must be called before DOSClockRead().

Declaration:
void DOSClockBegin(void);


DOSClockRead()

Description:
Read the system clock.

Declaration:
br_uint_32 DOSClockRead(void);

Result :
br_uint_32

Returns number of DOSClockRead ticks (as defined in dosio.h). Could be used to determine the frame rate :

start_time=DOSClockRead();

| |

| |

end_time=DOSClockRead();

frame_rate=BR_DOS_CLOCK_RATE/(end_time-start_time);


DOSClockEnd()

Description:
End clock support.

Declaration:
void DOSClockEnd(void);


Generated with
CERN WebMaker