Miles Sound System SDK 7.2a

AIL_us_count

The function AIL_us_count returns a microsecond accurate timer count (one million ticks per second).

U32 AIL_us_count();

Returns

The current timer count.

Discussion

Since this function moves so quickly, it wraps around every 71 minutes. It is most useful for profiling.

This function will always return increasing values (until it wraps).

Under MSS for DOS, this function reads the timer chip directly to obtain microsecond resolution, unless it is running in a Windows or Windows 9x DOS box. In a DOS box, MSS queries Windows directly for the current microsecond 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_ms_count
Related Basic Types: U32

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