Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Timing functions >

TimeBeginPeriod

Previous pageReturn to chapter overviewNext page

 

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