CLOCK [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
CLOCK
The CLOCK function returns the current value of the system clock in
seconds. This is an INTEGER. On the HP 3000, the value of the system
clock is the number of seconds since the time 00:00:00 on January 1,
1980.
Syntax
CLOCK
Since the CLOCK function is precise to the nearest second, two calls to
CLOCK within the same second may return equal values.
Examples
100 Start=CLOCK
.
.
.
900 Stop=CLOCK
910 PRINT "Elapsed time: "; Stop - Start
999 END
MPE/iX 5.0 Documentation