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

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
time ([Pointer dest]) yoix.system
 
Returns the number of seconds, as a double, that have elapsed since 00:00:00 GMT, January 1, 1970. The optional dest argument, when supplied and not NULL, must point to an integer or double into which time also stores the result.
 
 Example:   The program,
import yoix.stdio.*;
import yoix.system.*;
import yoix.thread.*;

double  start;

time(&start);
sleep(.5);
printf("elapsed seconds %g\n", time() - start);
should print a number slightly larger than .5 on standard output.
 
 Return:   double
 
 See Also:   currentTimeMillis, date, nanoTime, parseDate, parseTimer, sleep, timerFormat

 

Yoix is a registered trademark of AT&T Inc.