Miles Sound System SDK 7.2a

AIL_ms_count

The function AIL_ms_count returns a millisecond accurate timer count (one thousand ticks per second).

U32 AIL_ms_count();

Returns

The current timer count.

Discussion

Use this function if you just need a simple timer count, rather than registering a super-fast timer callback.

This function will always return increasing values.

Under MSS for DOS, this function reads the timer chip directly to obtain millisecond resolution, unless it is running in a Windows or Windows 9x DOS box. In a DOS box, MSS queries Windows directly for the current millisecond count. That means that this function is just as accurate in a Windows DOS box as it is under stand-alone DOS.

Under MSS for Windows, this function uses QueryPerformanceCounter for very accurate timings.


Group: Timer Services
Related Functions: AIL_delay, AIL_us_count
Related Basic Types: U32

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.