Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 7 Sucks ALL my CPU resource
Message
De
05/03/2003 12:30:58
 
 
À
04/03/2003 22:34:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00760730
Message ID:
00761607
Vues:
30
Function

Sleep

Description

Pauses execution of the current thread for a specified interval. Interval passed is in milliseconds. In-proc COM servers, this function should be used instead of UI functions like WAIT or INKEY().

A thread can also relinquish the remainder of its time slice by calling this function with a sleep time of zero milliseconds.

Host file

Kernel32.dll

Category

Base services

Declare in Visual FoxPro

DECLARE Sleep IN Win32API INTEGER nMilliseconds


Declare in Visual C++

VOID Sleep(
DWORD dwMilliseconds // sleep time
);



Example in Visual FoxPro

* Pause for 5 seconds

nSleepSeconds = 5
nMilliseconds = nSleepSeconds * 1000
=Sleep(nMilliSeconds)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform