xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_IdleSleepMSec()

Queries or changes the default time interval for idle task processing.

Syntax

HB_IdleSleepMSec( [<nNewInterval>] ) --> nOldInterval

Arguments

<nNewInterval>
This is a numeric value specifying the time interval to wait between the execution of idle tasks. The unit is 1/1000th of a second (milliseconds). The default value is 20.

Return

The function returns the previous wait interval for idle tasks as a numeric value.

Description

Function HB_IdleSleepMSec() queries or changes the number of milliseconds after which the next idle task is executed. This allows for fine tuning idle task processing and to optimize CPU usage on multi-user systems, such as Terminal Server, where a minimum amount of idle task processing is desirable.

Info

See also:HB_IdleAdd(), HB_IdleDel(), HB_IdleState(), HB_IdleSleepMSec(), HB_IdleWaitNoCPU()
Category: Background processing , xHarbour extensions
Source:rtl\idle.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe