<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Timing functions > TimeBeginPeriod |
Description
Requests a minimum resolution for periodic timers
Syntax
n = TimeBeginPeriod(period)
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
Period |
Numeric |
No |
Minimum timer resolution, in milliseconds, for the application or device driver. A lower value specifies a higher (more accurate) resolution. |
Remarks
For additional info, please refer to MS documentation at: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757624%28v=vs.85%29.aspx
Restrictions
You must match each call to TimeBeginPeriod with a call to TimeEndPeriod, specifying the same minimum resolution in both calls.
An application can make multiple TimeBeginPeriod calls as long as each call is matched with a call to TimeEndPeriod.
See also
Examples