xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

SecondsSleep()

Suspends thread execution for a number of seconds.

Syntax

SecondsSleep( <nSeconds> ) --> NIL

Arguments

<nSeconds>
This is a numeric value indicating the number of seconds to pause thread execution. The granularity is three places after the decimal point (1/1000th of a second).

Return

The function returns always NIL.

Description

Function SecondsSleep() suspends program execution in the current thread for the period of <nSeconds> seconds. During this period of time, no CPU resources are consumed by the current thread. The function accepts a numeric value with up to 3 decimal places (1/1000th of a second).

Note:  this function is also available in single threaded applications.

Info

See also:Inkey(), StartThread(), ThreadSleep(), WAIT
Category: Multi-threading functions , xHarbour extensions
Source:vm\thread.c
LIB:xhbmt.lib
DLL:xhbmtdll.dll


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