AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YDAT | YWAIT | Byzgraf | FAQs
sleep (Number time) yoix.thread
 
Suspends the current thread for time seconds, and returns a number (usually 0) that indicates how much of the requested sleep time was missed.
 
 Example:   The program,
import yoix.stdio.*;
import yoix.thread.*;

int  n;

for (n = 0; n < 20; n++) {
    sleep(.5);
    putchar('.');
}
prints 20 periods in about 10 seconds on standard output.
 
 Return:   double
 
 See Also:   currentTimeMillis, date, nanoTime, parseDate, parseTimer, time, timerFormat

 

Yoix is a registered trademark of AT&T Intellectual Property.